mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-09 04:07:33 +08:00
fix: disable input autofocus
This commit is contained in:
parent
77a453acae
commit
129a08878a
@ -282,16 +282,16 @@ const SheetOverlay: React.FC = () => {
|
||||
refs.cellArea.current?.scrollTop,
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
// ensure cell input is always focused to accept first key stroke on cell
|
||||
if (!context.editingCommentBox) {
|
||||
refs.cellInput.current?.focus({ preventScroll: true });
|
||||
}
|
||||
}, [
|
||||
context.editingCommentBox,
|
||||
context.luckysheet_select_save,
|
||||
refs.cellInput,
|
||||
]);
|
||||
// useEffect(() => {
|
||||
// // ensure cell input is always focused to accept first key stroke on cell
|
||||
// if (!context.editingCommentBox) {
|
||||
// refs.cellInput.current?.focus({ preventScroll: true });
|
||||
// }
|
||||
// }, [
|
||||
// context.editingCommentBox,
|
||||
// context.luckysheet_select_save,
|
||||
// refs.cellInput,
|
||||
// ]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user