Replies: 1 comment 6 replies
-
Adding |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a component which contains:
checkbox
input type text
orinput type file
depending on checkbox being turned on or off.Let's say
checkbox
is turned on and I show<input type text
. Let's type something into it. Now, I turn off checkbox. and show file input. Let's choose the file. and then clicksubmit
. After clicking submit, I console log the following.And this prints both the text and file too which seems wrong, because After typing text in the input text field, I switched to
file input
and input type text was destroyed. I thinkgetValue('text')
should be printing empty, but it still remembers the value.Beta Was this translation helpful? Give feedback.
All reactions