-
Notifications
You must be signed in to change notification settings - Fork 20
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
plasma-new-hope: fix id generation for Modal, Popup #1001
Conversation
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1001/ |
Documentation preview deployed! website: http://plasma.sberdevices.ru/pr/pr-1001/ |
ce2627f
to
cd22432
Compare
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1001/ |
Documentation preview deployed! website: http://plasma.sberdevices.ru/pr/pr-1001/ |
@@ -43,14 +43,14 @@ export const modalRoot = (Root: RootProps<HTMLDivElement, ModalProps>) => | |||
|
|||
const innerRef = useForkRef<HTMLDivElement>(trapRef, outerRootRef); | |||
|
|||
const uniqId = useUniqId(); |
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.
Может нам дропнуть useUniq из core ?
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.
отдельной бы задачкой. А то plasma-ui весь на нём
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.
вообще странно что у нас все на нем, хотя он устарел
давайте да отдельной задачкой выпилим
cd22432
to
671b5cb
Compare
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1001/ |
Documentation preview deployed! website: http://plasma.sberdevices.ru/pr/pr-1001/ |
⚡ Component performance testingResult: 🟢 OK |
🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀 |
🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀 |
Modal
Modal, Popup
Modal, Popup
What/why changed
Ломалось использование
ModalBase
без id из-за того, что неправильно пробрасывали. Теперь также используемsafeUseId
вместоuseUniqId
. Добавлены тесты для web, b2c для обоих компонент.📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via: