taiga-ui
taiga-ui copied to clipboard
🚀 - `PrimitiveTextfield` should use `Maskito` for `tuiTextfieldPrefix` / `tuiTextfieldPostfix`
Which @taiga-ui/* package(s) are the source of the bug?
core
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/taiga-starter
Is this issue blocking you?
Non-Blocking
Description
https://github.com/Tinkoff/taiga-ui/blob/main/projects/core/components/primitive-textfield/value-decoration/value-decoration.component.ts#L75
https://user-images.githubusercontent.com/12021443/176402849-706c0bb0-039b-4963-a50b-8bd409a4014f.mov
Angular version
latest
Taiga UI version
latest
Which browsers have you used?
- [X] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
Which operating systems have you used?
- [X] macOS
- [ ] Windows
- [ ] Linux
- [ ] iOS
- [ ] Android
Posible regression - https://github.com/Tinkoff/taiga-ui/pull/1867
I wonder, if with the new mask we should use prefix and postfix from the mask and keep them part of the input, rather than separate DOM elements, what do you think, @splincode @nsbarsukov @vladimirpotekhin ? Things to keep in mind:
- Right now prefix/postfix are not selectable. Is it good?
- RTL languages support
I thought about it too. At first glance, putting a prefix / postfix in the input part is a more organic solution.
- https://github.com/Tinkoff/maskito/issues/231
I thought about it too. At first glance, putting a prefix / postfix in the input part is a more organic solution.
It would definitely simplify a lot of things.