You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I'm pretty sure this is entirely a Firefox problem, but I'm wondering if there is a workaround in yew:
When using a <button type="button"> to reset <select> elements to some <option>, Firefox will update the DOM to set the desired option as selected, but doesn't update the dropdown menu. Every other browser I have tried updates the dropdown as expected, but Firefox does not.
If the <select> element is in a <form>, I can use a <button type="reset"> to reset the dropdown as expected, but any <input type="text"> elements in the form are set to empty this way. I'm trying to reset other inputs to some default value.
Problem
I'm pretty sure this is entirely a Firefox problem, but I'm wondering if there is a workaround in yew:
When using a
<button type="button">
to reset<select>
elements to some<option>
, Firefox will update the DOM to set the desired option asselected
, but doesn't update the dropdown menu. Every other browser I have tried updates the dropdown as expected, but Firefox does not.If the
<select>
element is in a<form>
, I can use a<button type="reset">
to reset the dropdown as expected, but any<input type="text">
elements in the form are set to empty this way. I'm trying to reset other inputs to some default value.Playground demo here:
https://play.yew.rs/?shared=6L0N4GKLcjf9eIGONTT5
Demo repo here:
https://github.com/ryanobeirne/yew-select-firefox
Steps To Reproduce
<select>
element<button type="button">
with anonclick
event to change the selected valueExpected behavior
I would expect that when the Reset button is clicked, the dropdown menu resets to the selected option.
Screenshots
Environment:
0.21.0
1.81.0 stable
wsm32-unknown-unknown
trunk
MacOS
andLinux
Firefox: (MacOS aarch64 v131.0, Ubuntu 64-bit v128.0, ArchLinux 64-bit 129.0.2)
Questionnaire
The text was updated successfully, but these errors were encountered: