ignore empty input, trim node name

This commit is contained in:
Mutasem 2022-04-08 12:57:09 +02:00
parent c705c8af98
commit 05023a0843

View file

@ -57,7 +57,10 @@ export default Vue.extend({
});
},
onRename() {
this.$emit('input', this.newName);
if (this.newName.trim() !== '') {
this.$emit('input', this.newName.trim());
}
this.editName = false;
},
},