Skip to content

Commit

Permalink
Fix page edit name validation rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
caleeli committed Mar 6, 2024
1 parent 3965b62 commit 04afb64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/sortable/sortableList/SortableList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ export default {
async onBlur(name, item) {
if (this.validateState(name, item) === false) {
this.newName = item.name;
} else {
// eslint-disable-next-line no-param-reassign
item.name = name;
}
// eslint-disable-next-line no-param-reassign
item.name = name;
await this.$nextTick();
setTimeout(() => {
this.editRowIndex = null;
Expand Down

0 comments on commit 04afb64

Please sign in to comment.