diff --git a/sdkjs-plugins/content/insertQR/scripts/settings.js b/sdkjs-plugins/content/insertQR/scripts/settings.js index 7d01f127..e3bdd88e 100644 --- a/sdkjs-plugins/content/insertQR/scripts/settings.js +++ b/sdkjs-plugins/content/insertQR/scripts/settings.js @@ -201,9 +201,6 @@ // Set the initial color picker values colorpicker.colorpicker('setValue', storedSettings.qrColor || $('#qrColor').val()); - // Disable the colorpicker to prevent unexpected behavior - colorpicker.colorpicker('disable'); - // Add event listener for window resize event window.addEventListener('resize', handleResize); @@ -225,7 +222,6 @@ $('#activateQR').change(function () { $('#bgColor').prop('disabled', true); $('#qrColor').prop('disabled', false); - colorpicker.colorpicker('enable') selectedInput = 'qrColor'; // Reinitialize color picker colorpicker = initializeColorPicker(); @@ -237,7 +233,6 @@ $('#activateBG').change(function () { $('#qrColor').prop('disabled', true); $('#bgColor').prop('disabled', false); - colorpicker.colorpicker('enable') selectedInput = 'bgColor'; // Reinitialize color picker colorpicker = initializeColorPicker(); @@ -281,21 +276,6 @@ $(this).on('input', delayedValidation); }); - $('#qrColorContainer').on('mouseleave', function () { - colorpicker.colorpicker('disable') - }); - - // Enable the colorpicker when the #qrColorContainer' is clciked - $('#qrColorContainer').on('click', function () { - colorpicker.colorpicker('enable') - }); - - // Enable the colorpicker when the '#qrColor, #bgColor' are clciked - $('#qrColor, #bgColor').on('click', function () { - colorpicker.colorpicker('enable') - - }); - // Function to handle window resize event function handleResize() { let zoom = 1;