Browse Source
fix(files): Ensure renaming state is correctly reset
fix(files): Ensure renaming state is correctly reset
Problem: Is a node is renamed and the new name is out of the current visible list of nodes the component will be recycled, this means the props will change, so when the `onRename` functions is about to reset the state the `this.source` will point to a different node. To fix this, but also to separate business logic from visual representation, the logic is moved into the renaming store and the component is only responsible for rendering. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>pull/48425/head
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
3 changed files with 122 additions and 61 deletions
-
70apps/files/src/components/FileEntry/FileEntryName.vue
-
83apps/files/src/store/renaming.ts
-
30cypress/e2e/files/files-renaming.cy.ts
Write
Preview
Loading…
Cancel
Save
Reference in new issue