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
I have noticed a problem when clicking on an <option> inside of a <select>, if it is nested inside of a <label>. I ripped out all of my CSS and was able to repro this with only the basic rmlui.rcss.
To wit. This basic example does work - the select box result changes when you click an option:
The reason I'm nesting the elements like this is so clicking on any part of the larger element is like clicking on the select. I attempted to do some RCA and it appears that any OnClick on an <option> element ends up targeting <select> instead.
This is on RmlUi 6.0.
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Yeah, there are some label scenarios that can be a bit tricky. Using <label for="..."> is generally a bit more robust pattern right now, but I agree that it should work. I will take a closer look at this one once I have some more time. Thanks for reporting it.
I have noticed a problem when clicking on an
<option>
inside of a<select>
, if it is nested inside of a<label>
. I ripped out all of my CSS and was able to repro this with only the basicrmlui.rcss
.To wit. This basic example does work - the select box result changes when you click an option:
This basic example also works:
However, this example does not work.
The reason I'm nesting the elements like this is so clicking on any part of the larger element is like clicking on the select. I attempted to do some RCA and it appears that any
OnClick
on an<option>
element ends up targeting<select>
instead.This is on RmlUi 6.0.
The text was updated successfully, but these errors were encountered: