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')