Closed ragulka closed 2 years ago
Possibly related to this: setValue
does not seem to work with the percent format at all. Here's a simple reproduction of the issue: https://codepen.io/ragulka/pen/NWgmqaE - note that I am using setValue
after initialization, but the input stays empty.
I actually can not reproduce your hidePrefixOrSuffixOnFocus
issues.
The percent format issues should be fixed in v1.1.0 (see bb81ba0)
I actually can not reproduce your
hidePrefixOrSuffixOnFocus
issues.
Looks like the issue has indeed been fixed in 1.1.0 🎉 Thanks!
Given the currency, unit or percent style, I would expect
hidePrefixOrSuffixOnFocus: true
to hide the prefix or suffix, well.. when the input is focused :smile:. However, in my testing, the behavior is different:currency
orunit
, the prefix/suffix is hidden only once I start typing. I would expect it to be hidden as soon as the input gains focus.percent
, the prefix/suffix is always hidden, whether the input is focused or not. I would expect it to be visible when not focused and only disappear when focused.Note that
hidePrefixOrSuffixOnFocus: false
seems to work as expected.