-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX beta] Read values of action
helper parameters
#12764
Conversation
@@ -1002,6 +1085,29 @@ QUnit.test('should respect preventDefault=false option if provided', function() | |||
equal(event.isDefaultPrevented(), false, 'should not preventDefault'); | |||
}); | |||
|
|||
QUnit.test('should respect preventDefault=false option if provided bound', function() { | |||
view = EmberView.create({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you can use an Ember.Component
here and set the targetObject
to be the controller
. I am wary of adding new tests that use EmberView
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I agreed on meeting @rwjblue after 2.3 was released to plan moving tests away from Ember.View
. While new tests suites are easy to start with Ember.Component
, most test files using views have already their setup
and teardown
based on that.
I rather write this with Ember.View
and start working on a plan to migrate tests one complete file at a time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with both here. 😺
Lets land to match the tests in the surrounding area, and then work to actually fix the test suite.
@Serabe if we add support for |
This change makes helper `action` `read` values when the action is executed instead of just using the value. This worked as far as the value was not bound. Fixes emberjs#12740
Added! |
[BUGFIX beta] Read values of `action` helper parameters
Thank you @Serabe! |
This change makes helper
action
read
values when the action is executedinstead of just using the value. This worked as far as the value was not bound.
Fixes #12740