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

Allow special reactive input element tag attributes !value and !checked. #15

Open
Tal500 opened this issue Sep 5, 2021 · 0 comments
Open

Comments

@Tal500
Copy link
Owner

Tal500 commented Sep 5, 2021

For reactive element <input />, we need to support the '!' syntax for 'value' and 'checked' attribute.

Usually, when the page is reloaded, the HTML input element value/check status is set to the value that was in the last time the page was displayed, and not to the initial value which specified in the 'value' and 'checked' attribute.

This case sometime is good (for exmplae for username field), but sometime is needed to be forcefully overridden.

If the user use the attrbiutes '!value' and '!checked' (starting with '!'), it should mean that we need to reset the value to the initial value in JS code while the page is loading.

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