Issue: select values not compared strictly? #252
Unanswered
sytzewesterdijk
asked this question in
Q&A
Replies: 0 comments
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.
-
When my select has the values "02" and "2" and the user selects "02", the "2" is shown in the frontend. After looking into the situation, I discovered both values have the attribute "selected":
The select looks like:
return html()->select($code, $selectOptions, $value) ->attributes($selectAttributes) ->placeholder(trans('options.select')) ->class($this->fieldClass($options));
In the Select element class, is looks like a $value->contains() is done. I would expect this to be a strict comparison though?
Beta Was this translation helpful? Give feedback.
All reactions