Content
@
0 reply
0 recast
0 reaction
Boyd
@andrewboyd
It's amazing how much work it takes to support something that you probably shouldn't do. But â the FormKit floating labels plugin now supports arbitrary prefix content as of 1.5.4: https://formkit.link/76c4b4052d1f224a895783604fe58937
1 reply
0 recast
1 reaction
Darryl Yeo đ ïž
@darrylyeo
That's cool! Only thing I don't like about this is it blocks the click-anywhere-to-focus behavior that you usually get with <label>s (unless that's the intended effect).
1 reply
0 recast
0 reaction
Boyd
@andrewboyd
Shouldnât be! Thereâs âprefixâ content in some of these inputs but they are not labels.
1 reply
0 recast
0 reaction
Darryl Yeo đ ïž
@darrylyeo
I'd much prefer to be able to click anywhere within the box to be honest, including through the prefix content.
1 reply
0 recast
1 reaction
Boyd
@andrewboyd
Thatâs a really good point â and users could easily do that with some handlers. But we canât make it the default because sometimes you need actions on the prefix content that donât focus the input so then youâd have to fight against FormKit.
1 reply
0 recast
0 reaction