-
-
Notifications
You must be signed in to change notification settings - Fork 768
fix(ui): commit popover forms through submit, not a key handler #3030
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
Open
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c8582b9
fix(ui): commit popover forms through submit, not a key handler
YousefED c47db57
fix(ui): one submit control per form, and reuse mergeRefs
YousefED 2a52fe6
test(ui): cover the composition guard, and drop two tests that couldn…
YousefED 1435d9b
fix(ui): drop the composition guard — native submission already handl…
YousefED 07f1285
fix(ui): every form declares its submit control explicitly
YousefED 1e75c2c
test: platform-contract suites get their own directory
YousefED ec8ed01
docs(mantine): portalling TODO and the focus-trap contract
YousefED 34c528b
refactor(ui): one autofocus implementation, shared as useAutoFocus
YousefED ce456bc
refactor(ui): review follow-ups on focus ownership and docs
YousefED f377e93
Merge branch 'mobile/test-infra' into mobile/link-popover
YousefED 32de7d0
Merge branch 'mobile/test-infra' into mobile/link-popover
YousefED 38a1221
Merge branch 'mobile/test-infra' into mobile/link-popover
YousefED b8a7b7b
Merge branch 'mobile/test-infra' into mobile/link-popover
YousefED 26854a8
Merge branch 'mobile/test-infra' into mobile/link-popover
YousefED 09efc7e
Merge branch 'mobile/test-infra' into mobile/link-popover
YousefED ddd4cae
fix(react): attach the portal override root before children's layout …
YousefED 7ef4db7
refactor(react): one tap focus guard, and popovers never take library…
YousefED 061b6e8
fix(ariakit,shadcn): keep focus in the editor on the mobile toolbar
YousefED d046222
Merge branch 'mobile/test-infra' into mobile/link-popover
YousefED 790e90a
refactor(ariakit,shadcn): drop the mobile focus switches that do noth…
YousefED 621fdf4
refactor(shadcn): drop the focus hand-back on sub-menus
YousefED 7835124
docs: how-to-test notes on every mobile focus prop the sweep proved l…
YousefED 5d031a7
refactor(skins): type the toolbar buttons with the props the UI libra…
YousefED File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -406,5 +406,6 @@ export const ar: Dictionary = { | |
| }, | ||
| generic: { | ||
| ctrl_shortcut: "Ctrl", | ||
| form_submit: "موافق", | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -440,5 +440,6 @@ export const de: Dictionary = { | |
| }, | ||
| generic: { | ||
| ctrl_shortcut: "Strg", | ||
| form_submit: "OK", | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -421,5 +421,6 @@ export const en = { | |
| }, | ||
| generic: { | ||
| ctrl_shortcut: "Ctrl", | ||
| form_submit: "OK", | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -419,5 +419,6 @@ export const es: Dictionary = { | |
| }, | ||
| generic: { | ||
| ctrl_shortcut: "Ctrl", | ||
| form_submit: "Aceptar", | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -390,5 +390,6 @@ export const fa = { | |
| }, | ||
| generic: { | ||
| ctrl_shortcut: "Ctrl", | ||
| form_submit: "تأیید", | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -467,5 +467,6 @@ export const fr: Dictionary = { | |
| }, | ||
| generic: { | ||
| ctrl_shortcut: "Ctrl", | ||
| form_submit: "OK", | ||
| }, | ||
| }; | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: TypeCellOS/BlockNote
Length of output: 40885
🌐 Web query:
site:ariakit.com/changelog 0.4.27 autoFocusOnShow Menu callback false💡 Result:
Ariakit 0.4.27 fixed
MenusoautoFocusOnShow={false}—or a callback returningfalse—is respected, while arrow keys can still move focus into an already-open menu. (ariakit.com)Citations:
🌐 Web query:
Ariakit v0.4.27 Menu autoFocusOnShow false callback release notes💡 Result:
In Ariakit version 0.4.27, a fix was implemented for the Menu component regarding the autoFocusOnShow prop [1][2]. The release notes state that the Menu component was updated to correctly respect the autoFocusOnShow prop when it is set to false or when a callback returns false [1][2]. While this change prevents the menu from automatically focusing on show when configured to do so, it maintains the ability for users to use arrow keys to move focus into an already-open menu [1][2]. This update was released to address issues where the autoFocusOnShow prop was not being properly observed, causing the menu to receive focus despite being explicitly configured otherwise [3].
Citations:
🏁 Script executed:
Repository: TypeCellOS/BlockNote
Length of output: 209
Raise the minimum
@ariakit/reactversion to 0.4.27.The lockfile currently resolves 0.4.24. Ariakit did not respect
autoFocusOnShow={false}or callbacks returningfalseuntil 0.4.27. WithpreventFocusOnOpenenabled, the menu can still receive focus and dismiss the mobile keyboard.🤖 Prompt for AI Agents