Skip to content
Snippets Groups Projects
Commit 8d4ef553 authored by Adam Procter's avatar Adam Procter
Browse files

simplify nodes

parent 5604903d
No related branches found
No related tags found
No related merge requests found
......@@ -334,18 +334,24 @@ export default {
// this.$store.dispatch('editNode', { nodeid, nodetext })
// }, 600),
editNode: lodash.debounce(function (e) {
const el = e.target
const cursorPos = el.selectionStart
// editNode: lodash.debounce(function (e) {
// const el = e.target
// const cursorPos = el.selectionStart
// var nodeid = e.target.id
// var nodetext = e.target.value
// this.$store.dispatch('editNode', { nodeid, nodetext })
// this.$nextTick(() => {
// el.setSelectionRange(cursorPos, cursorPos)
// })
// }, 600),
editNode(e) {
var nodeid = e.target.id
var nodetext = e.target.value
this.$store.dispatch('editNode', { nodeid, nodetext })
this.$nextTick(() => {
el.setSelectionRange(cursorPos, cursorPos)
})
}, 600),
},
deleteFlag(e) {
e = this.nodeid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment