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

Input fields not updated to reflect data changes #150

Closed
nbullock opened this issue Feb 3, 2022 · 3 comments
Closed

Input fields not updated to reflect data changes #150

nbullock opened this issue Feb 3, 2022 · 3 comments
Labels
wontfix This will not be worked on

Comments

@nbullock
Copy link

nbullock commented Feb 3, 2022

Test case: https://codepen.io/troglet/pen/XWzKYba

It looks like there's possibly an issue with input field values in the test case above - clicking on the items in the left table sets the selectedItem property of the store, and the right panel is rendered. The heading is correct, but the 'Name' and 'Timezone' input fields remain at whatever you first clicked on.

My workaround in the production code I'm writing is to set selectedItem to 0 in the selectItem() function, call render() and then set it to what I want, which isn't ideal but works.

Using reef 11.0.1 in Chrome Version 97.0.4692.99 on Windows 10 (also tried Firefox 93.0.3)

@Frenzie
Copy link

Frenzie commented May 6, 2022

Presumably the same thing seems to happen with the disabled attribute on buttons.

@anthonysan95
Copy link

https://reefjs.com/advanced/#default-and-state-based-html-attributes

@cferdinandi cferdinandi added the wontfix This will not be worked on label Jul 14, 2022
@cferdinandi
Copy link
Owner

Per the linked article, this is handled with the @ and # prefixes in your template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants