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
When entered password is invalid rendered html looks like this:
<divmessage="this must be at least 6 characters" class="field is-danger svelte-utp4kb"><labelfor="" class="label">Password</label><divclass="control svelte-1v5s752 has-icons-right"><inputname="password" type="password" class="input svelte-1v5s752"><spanclass="icon has-text-primary is-right is-clickable"><iclass="fas fa-eye "></i></span></div><pclass="help is-danger svelte-utp4kb">this must be at least 6 characters</p></div>
As you can see is-danger class isn't being propagated to input, which leads to rendering red border.
The text was updated successfully, but these errors were encountered:
asm0dey
changed the title
is-danger isn't being propagatet from Field to Input class
is-danger isn't being propagated from Field to Input class
May 10, 2020
Observing the same issue. In my understanding, this happens because the type in Input component is retrieved with getContext. Per Svelte documentation "Since context is not reactive, values that change over time should be represented as stores".
I'm trying to use svelma with Svelte forms lib (https://github.com/tjinauyeung/svelte-forms-lib).
I have following field:
When entered password is invalid rendered html looks like this:
As you can see
is-danger
class isn't being propagated toinput
, which leads to rendering red border.The text was updated successfully, but these errors were encountered: