From 7239db23b2014f49994833c4eb07a6370ba208c0 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Tue, 17 Oct 2023 18:05:30 +0300 Subject: [PATCH] remove focus from alt text --- .../src/ImageService/AltComponent.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wax-prosemirror-services/src/ImageService/AltComponent.js b/wax-prosemirror-services/src/ImageService/AltComponent.js index 15411af46..d6469398d 100644 --- a/wax-prosemirror-services/src/ImageService/AltComponent.js +++ b/wax-prosemirror-services/src/ImageService/AltComponent.js @@ -73,14 +73,14 @@ export default ({ setPosition, position }) => { const imageConfig = app.config.get('config.ImageService'); const showAlt = imageConfig && imageConfig.showAlt; - const autoFocus = - activeView.state.selection && - activeView.state.selection.node && - activeView.state.selection.node.attrs.alt === ''; + // const autoFocus = + // activeView.state.selection && + // activeView.state.selection.node && + // activeView.state.selection.node.attrs.alt === ''; return !readOnly && showAlt ? ( <StyledInputAlt - autoFocus={autoFocus} + // autoFocus={autoFocus} key="alt" onChange={altTextOnChange} placeholder="Alt Text" -- GitLab