fix spellcheck (#1163)
This commit is contained in:
@@ -56,7 +56,7 @@ addContextMenuPatch("textarea-context", children => {
|
|||||||
const settings = useSettings();
|
const settings = useSettings();
|
||||||
const spellCheckLanguages = (settings.spellCheckLanguages ??= [...new Set(navigator.languages)]);
|
const spellCheckLanguages = (settings.spellCheckLanguages ??= [...new Set(navigator.languages)]);
|
||||||
|
|
||||||
const pasteSectionIndex = children.findIndex(c => c?.props?.children?.some(c => c?.props?.id === "paste"));
|
const pasteSectionIndex = children.findIndex(c => c?.props?.children?.some?.(c => c?.props?.id === "paste"));
|
||||||
|
|
||||||
children.splice(
|
children.splice(
|
||||||
pasteSectionIndex === -1 ? children.length : pasteSectionIndex,
|
pasteSectionIndex === -1 ? children.length : pasteSectionIndex,
|
||||||
|
|||||||
Reference in New Issue
Block a user