Draft emails fix onblur on text input and callout banner component overflow (#18310)
Before <img width="396" height="759" alt="SCR-20260301-daft" src="https://github.com/user-attachments/assets/c3fb3a19-3456-424d-9fd2-dd13ed0d2ad5" /> After <img width="391" height="752" alt="SCR-20260301-daio" src="https://github.com/user-attachments/assets/80a64991-6e69-4ddf-b968-bdc788af02cd" />
This commit is contained in:
+7
@@ -149,6 +149,13 @@ export const useMultiItemFieldEditor = ({
|
||||
onUpdate: ({ editor }) => {
|
||||
onUpdate(editor);
|
||||
},
|
||||
onBlur: ({ editor }) => {
|
||||
const textBefore = getTextBeforeCursor(editor);
|
||||
|
||||
if (textBefore.trim().length > 0) {
|
||||
convertTextToTag(editor, textBefore);
|
||||
}
|
||||
},
|
||||
enableInputRules: false,
|
||||
enablePasteRules: false,
|
||||
injectCSS: false,
|
||||
|
||||
Reference in New Issue
Block a user