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.value must be set as HTML attribute for default value to work #3

Open
atlemagnussen opened this issue Jan 10, 2024 · 3 comments

Comments

@atlemagnussen
Copy link

I just noticed that if I create an input DOM element and set default value from the property

let inputEl = document.createElement("input")
input.value = "#AAA" 

for a default value - it would just be reset to #FFF from your lib.

But when I test with HTML

<input value="#AAA">

it works

@thednp
Copy link
Owner

thednp commented Jan 10, 2024

That's correct :)

@atlemagnussen
Copy link
Author

That's correct :)

I tried to put a breakpoint there and the color was set correctly, so probably something else overriding afterwards :)

@thednp
Copy link
Owner

thednp commented Nov 23, 2024

Can you give the latest version a try?

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

2 participants