Skip to content

Commit

Permalink
fix(FaImageUpload): should not allow locking the aspect ratio when wi…
Browse files Browse the repository at this point in the history
…dth or height is empty
  • Loading branch information
cloydlau committed Feb 4, 2024
1 parent 7dbc793 commit 9127144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ImageUpload/ImageEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ export default {
</template>
<el-switch
v-model="isAspectRatioLocked"
:disabled="isAspectRatioSpecified"
:disabled="isAspectRatioSpecified || !impliedAspectRatio"
@change="onIsAspectRatioSpecifiedChange"
/>
</el-form-item>
Expand Down

0 comments on commit 9127144

Please sign in to comment.