fix: edit mode set to true by default (#8468)

This commit is contained in:
Joe 2023-04-26 22:06:04 +05:30 committed by GitHub
parent 7ff5b66f46
commit 8297824051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ function FloatingLinkEditor({ editor }: { editor: LexicalEditor }) {
const mouseDownRef = useRef(false);
const inputRef = useRef<HTMLInputElement | null>(null);
const [linkUrl, setLinkUrl] = useState("");
const [isEditMode, setEditMode] = useState(false);
const [isEditMode, setEditMode] = useState(true);
const [lastSelection, setLastSelection] = useState<RangeSelection | NodeSelection | GridSelection | null>(
null
);