浏览代码

Fix parse colour code operation.
The interactive part broke due to changes for multiple inputs.
Now fires the inputChange event with a fake keyup event to autobake

j433866 5 年之前
父节点
当前提交
19553dcfed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/operations/ParseColourCode.mjs

+ 1 - 1
src/core/operations/ParseColourCode.mjs

@@ -113,7 +113,7 @@ CMYK: ${cmyk}
     }).on('colorpickerChange', function(e) {
         var color = e.color.string('rgba');
         document.getElementById('input-text').value = color;
-        window.app.autoBake();
+        window.app.manager.input.debounceInputChange(new Event("keyup"));
     });
 </script>`;
     }