-
Notifications
You must be signed in to change notification settings - Fork 23
PLASMA-4301: refactor DatePicker input validation #1916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
Theme Builder app deployed! https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1916/ |
d4eca86 to
3a15cea
Compare
|
Documentation preview deployed! website: https://plasma.sberdevices.ru/pr/pr-1916/ |
3a15cea to
8a25906
Compare
8a25906 to
2ae62e0
Compare
| isoDate, | ||
| originalDate, | ||
| }; | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ох жесть 😨 Откуда столько? Разве здесь использование маски не подошло бы, например? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Неа, потому что есть буквенный ввод месяца. Если б этого не было, маска подошла бы
2ae62e0 to
296eae0
Compare
296eae0 to
03d162c
Compare
03d162c to
518b4a2
Compare
Core
DatePicker
What/why changed
При вводе даты отрабатывает строгая валидаци, чтобы нельзя было ввести ничего лишнего и пользователю не нужно было дополнительно валидировать значение.
📦 Published PR as canary version:
Canary Versions✨ Test out this PR locally via:
npm install @salutejs/plasma-asdk@0.335.0-canary.1916.14472644120.0 npm install @salutejs/plasma-b2c@1.577.0-canary.1916.14472644120.0 npm install @salutejs/plasma-giga@0.304.0-canary.1916.14472644120.0 npm install @salutejs/plasma-hope@1.339.0-canary.1916.14472644120.0 npm install @salutejs/plasma-icons@1.217.0-canary.1916.14472644120.0 npm install @salutejs/plasma-new-hope@0.321.0-canary.1916.14472644120.0 npm install @salutejs/plasma-ui@1.315.0-canary.1916.14472644120.0 npm install @salutejs/plasma-web@1.579.0-canary.1916.14472644120.0 npm install @salutejs/sdds-clfd-auto@0.308.0-canary.1916.14472644120.0 npm install @salutejs/sdds-cs@0.313.0-canary.1916.14472644120.0 npm install @salutejs/sdds-dfa@0.307.0-canary.1916.14472644120.0 npm install @salutejs/sdds-finportal@0.300.0-canary.1916.14472644120.0 npm install @salutejs/sdds-insol@0.304.0-canary.1916.14472644120.0 npm install @salutejs/sdds-serv@0.308.0-canary.1916.14472644120.0 npm install @salutejs/plasma-themes@0.32.0-canary.1916.14472644120.0 # or yarn add @salutejs/plasma-asdk@0.335.0-canary.1916.14472644120.0 yarn add @salutejs/plasma-b2c@1.577.0-canary.1916.14472644120.0 yarn add @salutejs/plasma-giga@0.304.0-canary.1916.14472644120.0 yarn add @salutejs/plasma-hope@1.339.0-canary.1916.14472644120.0 yarn add @salutejs/plasma-icons@1.217.0-canary.1916.14472644120.0 yarn add @salutejs/plasma-new-hope@0.321.0-canary.1916.14472644120.0 yarn add @salutejs/plasma-ui@1.315.0-canary.1916.14472644120.0 yarn add @salutejs/plasma-web@1.579.0-canary.1916.14472644120.0 yarn add @salutejs/sdds-clfd-auto@0.308.0-canary.1916.14472644120.0 yarn add @salutejs/sdds-cs@0.313.0-canary.1916.14472644120.0 yarn add @salutejs/sdds-dfa@0.307.0-canary.1916.14472644120.0 yarn add @salutejs/sdds-finportal@0.300.0-canary.1916.14472644120.0 yarn add @salutejs/sdds-insol@0.304.0-canary.1916.14472644120.0 yarn add @salutejs/sdds-serv@0.308.0-canary.1916.14472644120.0 yarn add @salutejs/plasma-themes@0.32.0-canary.1916.14472644120.0