File tree 1 file changed +1
-4
lines changed
src/components/LexicalEditor
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ function positionEditorElement(editor, rect) {
89
89
function FloatingLinkEditor ( { editor } ) {
90
90
const editorRef = useRef ( null ) ;
91
91
const inputRef = useRef ( null ) ;
92
- const mouseDownRef = useRef ( false ) ;
93
92
const [ linkUrl , setLinkUrl ] = useState ( "" ) ;
94
93
const [ isEditMode , setEditMode ] = useState ( false ) ;
95
94
const [ lastSelection , setLastSelection ] = useState ( null ) ;
@@ -134,9 +133,7 @@ function FloatingLinkEditor({ editor }) {
134
133
rect = domRange . getBoundingClientRect ( ) ;
135
134
}
136
135
137
- if ( ! mouseDownRef . current ) {
138
- positionEditorElement ( editorElem , rect ) ;
139
- }
136
+ positionEditorElement ( editorElem , rect ) ;
140
137
setLastSelection ( selection ) ;
141
138
} else if ( ! activeElement || activeElement . className !== "link-input" ) {
142
139
positionEditorElement ( editorElem , null ) ;
You can’t perform that action at this time.
0 commit comments