solid-form-hidden returns a wrong type in a search context
When we use a solid-form-hidden
widget in a solid-form-search
, it always returns a string
type, and then uses the string
function to compare the value.
However, we were previously able to use numbers or boolean with it, like this:
<solid-form-search
id="search"
fields='is_admin'
value-is_admin='true'
widget-is_admin='solid-form-hidden'
></solid-form-search>
<solid-display
data-src="https://api.test3.startinblox.com/users/benoit/circles/"
fields='circle.name'
filtered-by="search"
></solid-display>
Now, this tries to compare a boolean and a string and fails with an error.
We could try to guess the type of the widget if it's a solid-form-hidden.
@balessan @clement what do you think?
(Needed for Hubl)