-
-
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
Using input helper, how can we pass both the value
and event
to the action?
#16989
Comments
I've also run into this in 3.4. |
Same here. After updated to Ember 3.4 the |
Hi there! Do you have ETA for the bugfix? |
the patch already landed, and will be included in the next 3.4.x version (hopefully releasing today/tomorrow) |
As per the ember latest (3.4), in the docs
https://guides.emberjs.com/release/templates/input-helpers/
it says if you set the value, the value will be sent to the action as the first param.
Otherwise, it will send the event as the first param.
However, I need both the
value
and theevent
to be passed to the action.How can I get that to work with the latest ember?
The below code shows an example of a template code and component (js) code.
hbs:
{{input placeholder=placeholder class="type-in" autocomplete="off" value=value key-up="keyUp" key-down="keyDown" insert-newline="enter" bubbles=false }}
js:
actions: { keyUp(text, event) { ... } }
The above code used to work in ember 2.9.0. Both the
value
andevent
used to get passed to thekeyUp
action. Now, I upgrade to ember 3.4, it only sends thevalue
, the second param (event) is null.Thanks for any help.
The text was updated successfully, but these errors were encountered: