mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
fix(editors): focus the dialog without selecting its name field
Cancel the non-bubbling FocusScope mount event in the capture phase and focus the dialog itself. Keep keyboard navigation working without highlighting the name or opening the touch keyboard automatically.
This commit is contained in:
1 parent
2035f9f476
commit
462f1db833
5 files changed
+35
-2
No files matched your search
@@ -553,6 +553,11 @@
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
/* The dialog itself takes focus on open (useDialogFocus); its fields show the ring. */
|
||||
.editor-dialog:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.editor-dialog > div:first-child {
|
||||
margin-bottom: 0 !important;
|
||||
flex-shrink: 0 !important;
|
||||
|
||||
Reference in new issue
Block a user