Fix a bug where the custom image modifiers button would close the modifiers panel

This commit is contained in:
cmdr2 2022-11-09 13:46:50 +05:30
parent 1bebaf933d
commit bca98269bb
2 changed files with 3 additions and 2 deletions

View File

@ -293,7 +293,7 @@
<script src="media/js/plugins.js?v=1"></script>
<script src="media/js/utils.js?v=6"></script>
<script src="media/js/inpainting-editor.js?v=1"></script>
<script src="media/js/image-modifiers.js?v=5"></script>
<script src="media/js/image-modifiers.js?v=6"></script>
<script src="media/js/auto-save.js?v=6"></script>
<script src="media/js/main.js?v=9"></script>
<script src="media/js/themes.js?v=4"></script>

View File

@ -244,8 +244,9 @@ function resizeModifierCards(val) {
modifierCardSizeSlider.onchange = () => resizeModifierCards(modifierCardSizeSlider.value)
previewImageField.onchange = () => changePreviewImages(previewImageField.value)
modifierSettingsBtn.addEventListener('click', function() {
modifierSettingsBtn.addEventListener('click', function(e) {
modifierSettingsOverlay.classList.add("active")
e.stopPropagation()
})
function saveCustomModifiers() {