From 0c0663eb341e3ab115be28423851b963e19e8fd6 Mon Sep 17 00:00:00 2001 From: Mo'ath Zaghdad Date: Sun, 29 Jan 2023 13:21:51 -0500 Subject: [PATCH] fix: Correct a condition that gets the width value on the Image-Properties (#880) --- src/editor/dialogs/imagePropertiesDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/dialogs/imagePropertiesDialog.js b/src/editor/dialogs/imagePropertiesDialog.js index 038e0784..5cf1c3b9 100644 --- a/src/editor/dialogs/imagePropertiesDialog.js +++ b/src/editor/dialogs/imagePropertiesDialog.js @@ -280,7 +280,7 @@ export class SeImgPropDialog extends HTMLElement { connectedCallback () { const onChangeHandler = (ev) => { if (!ev.target.selectedIndex) { - if (this.$canvasWidth.getAttribute('value') === 'fit') { + if (this.$canvasWidth.value === 'fit') { this.$canvasWidth.removeAttribute('disabled') this.$canvasWidth.value = 100 this.$canvasHeight.removeAttribute('disabled')