Skip to content

Commit

Permalink
Fix potential focus restoration issue when saving a todo
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo committed Dec 30, 2022
1 parent dd7d87c commit f88149b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
### 🐞 Bug Fixes

- Fix an issue preventing to save a todo after deleting a todo node while preserving its children.
- Fix a potential focus restoration issue when saving a todo.
- Fix an issue with the command and navigation palettes sometime displaying only partial results.

## v0.3.0
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
},
"packageManager": "[email protected]",
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
},
"peerDependencyRules": {
"ignoreMissing": [
"vite"
Expand Down
13 changes: 13 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/use-editable.es.js b/dist/use-editable.es.js
index 96b260cf6b3b167b640bf903a9dbae652e883d31..05a6c055433839b332eb52b6809adf3e7ebd9f59 100644
--- a/dist/use-editable.es.js
+++ b/dist/use-editable.es.js
@@ -174,7 +174,7 @@ export function useEditable(c, a, b) {
}
return h;
}
- }));
+ }), [ c, a, b.disabled, e, e.disconnected, e.observer, e.position ]);
useLayoutEffect((function() {
if (!c.current || b.disabled) {
e.history.length = 0, e.historyAt = -1;
10 changes: 8 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f88149b

Please sign in to comment.