-
-
Notifications
You must be signed in to change notification settings - Fork 386
Closed
Labels
component: dialogChanges related to the dialog component.Changes related to the dialog component.type: regressionA bug, but worse, it used to behave as expected.A bug, but worse, it used to behave as expected.
Description
Steps to reproduce
Steps:
- Open https://master--base-ui.netlify.app/react/components/dialog#close-confirmation
- Start typing into the input. Start a composite word. Press Escape to cancel it.
Current behavior
It closes the modal
Japanese:
Screen.Recording.2024-10-02.at.00.26.33.mov
French:
Screen.Recording.2024-10-02.at.00.26.13.mov
Expected behavior
It only closes the composite selector. https://mui.com/base-ui/react-modal/#component
Screen.Recording.2024-10-02.at.00.31.32.mov
Context
- It's easy to fix. See how it was fixed in the PR linked below.
- It's a regression from
@mui/base. It works correctly there since this change was made: [material-ui][Dialog] Should not close until the IME is cancelled material-ui#39713. - As for where this is broken, it seems to be from https://github.com/floating-ui/floating-ui/blob/ecd627e4676a50643edcdf8915a6acefa50ee3d8/packages/react/src/hooks/useDismiss.ts#L159.
- It's a low priority, we lived with this bug for a very long time in Material UI, so to fix, but for later.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: dialogChanges related to the dialog component.Changes related to the dialog component.type: regressionA bug, but worse, it used to behave as expected.A bug, but worse, it used to behave as expected.