Ver código fonte

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 anos atrás
pai
commit
19553dcfed
1 arquivos alterados com 1 adições e 1 exclusões
  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>`;
     }