fix glitching on highlighting of current token
This commit is contained in:
parent
7bae73bcb4
commit
2c82cc3bbc
|
@ -176,6 +176,7 @@
|
||||||
if (el.colorpickerData && el.colorpickerData.color === data.color) {
|
if (el.colorpickerData && el.colorpickerData.color === data.color) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
el.dataset.colorpicker = '';
|
||||||
el.colorpickerData = Object.assign({line, ch: start}, data);
|
el.colorpickerData = Object.assign({line, ch: start}, data);
|
||||||
let bg = el.firstElementChild;
|
let bg = el.firstElementChild;
|
||||||
if (!bg) {
|
if (!bg) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user