Closed dela3499 closed 6 years ago
Same here. You cannot create a password input field (for example) with the current version. 😞
@alvivi See the workaround.
In your case:
node "input" <|
el None
[ type_ "password"]
(text "")
http://package.elm-lang.org/packages/mdgriffith/style-elements/4.0.0/Element-Input#username
In 4.0 this is fixed.
Check it out.
This was addressed in v4 :)
When inputText is defined, the
type_
attribute is set totext
.This seems to prevent the user from setting
type_
on their own. When I try providingtype_ "email"
in the attributes list, it doesn't seem to work.Perhaps the first term of the attrs definition can simply be omitted, or left present only when
type_
isn't provided as an argument to inputText.Here's my current workaround.