Don't re-render input while focused
This commit is contained in:
parent
c18671c91c
commit
93dee41c11
|
@ -363,6 +363,9 @@ function configDialog(style) {
|
||||||
|
|
||||||
function renderValues(varsToRender = vars) {
|
function renderValues(varsToRender = vars) {
|
||||||
for (const va of varsToRender) {
|
for (const va of varsToRender) {
|
||||||
|
if (va.input === document.activeElement) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const value = isDefault(va) ? va.default : va.value;
|
const value = isDefault(va) ? va.default : va.value;
|
||||||
if (va.type === 'color') {
|
if (va.type === 'color') {
|
||||||
va.input.style.backgroundColor = value;
|
va.input.style.backgroundColor = value;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user