fix: Correct a condition that gets the width value on the Image-Properties (#880)

master
Mo'ath Zaghdad 2023-01-29 13:21:51 -05:00 committed by GitHub
parent 230331b36e
commit 0c0663eb34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ export class SeImgPropDialog extends HTMLElement {
connectedCallback () { connectedCallback () {
const onChangeHandler = (ev) => { const onChangeHandler = (ev) => {
if (!ev.target.selectedIndex) { if (!ev.target.selectedIndex) {
if (this.$canvasWidth.getAttribute('value') === 'fit') { if (this.$canvasWidth.value === 'fit') {
this.$canvasWidth.removeAttribute('disabled') this.$canvasWidth.removeAttribute('disabled')
this.$canvasWidth.value = 100 this.$canvasWidth.value = 100
this.$canvasHeight.removeAttribute('disabled') this.$canvasHeight.removeAttribute('disabled')