fix '.add-applies-to' click listener
This commit is contained in:
parent
42bd77ec17
commit
4a7c675d06
|
@ -73,7 +73,7 @@ function createAppliesToLineWidget(cm) {
|
||||||
},
|
},
|
||||||
|
|
||||||
'.add-applies-to': (item, apply) => {
|
'.add-applies-to': (item, apply) => {
|
||||||
const applies = this.closest('.applies-to').__applies;
|
const applies = item.closest('.applies-to').__applies;
|
||||||
const i = applies.indexOf(apply);
|
const i = applies.indexOf(apply);
|
||||||
const pos = apply.mark.find().to;
|
const pos = apply.mark.find().to;
|
||||||
const text = `, ${apply.type.text}("")`;
|
const text = `, ${apply.type.text}("")`;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user