Skip to content
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

fillIn does not work with input values that are decorated with the readonly helper #1343

Closed
kboucher opened this issue Feb 27, 2023 · 1 comment

Comments

@kboucher
Copy link

kboucher commented Feb 27, 2023

ember-cli: 3.28.5
@ember/test-helpers: 2.6.0

I have an input in a component that is leveraging the readonly helper for one-way binding:

<input
    type="text"
    value={{readonly this.inputValue}}
    {{on "change" (fn this.onValueChange @condition)}}
>

...however, when I try to use the fillIn helper in an acceptance test, the input is not filled in and the change and input events are not fired.

Removing the readonly helper results in the fillIn helper working as expected.

Works:

<input
    type="text"
    value={{this.inputValue}}
    {{on "change" (fn this.onValueChange @condition)}}
>
@kboucher
Copy link
Author

Turns out the issue was actually a bug in my code that did not manifest itself until my test case. Testing FTW!

@kboucher kboucher closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant