Replies: 3 comments 2 replies
-
The same issue discussed here #346 Unfortunately, this is a problem in HTML itself |
Beta Was this translation helpful? Give feedback.
-
Thanks @gramie so much for the catch! I fixed the issue in vanjs-org/vanjs-org.github.io@498fcfd by using |
Beta Was this translation helpful? Give feedback.
-
@Tao-VanJS, @sirenkovladd Thanks very much for your help. Glad to know that it's not just me! Another workaround I have found is to go back and set the
|
Beta Was this translation helpful? Give feedback.
-
I have been having trouble getting a
<select>
box to display with an initial value. When I look at the example at https://vanjs.org/tutorial#state-derived-prop, I see it also does not display the correct initial value. If you change line #4 of the example:const size = van.state(16), color = van.state("black")
to use a different colour (i.e. green):
const size = van.state(16), color = van.state("green")
then the text
is correctly green, but the
<select>
box displays "black". There is no way (as far as I have found) of having the<select>
display "green" if that is the initial state of the variable "color
".Beta Was this translation helpful? Give feedback.
All reactions