Skip to content

Commit

Permalink
fix(modal): make property witdh reactive (oruga-ui#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek committed Mar 9, 2024
1 parent 6c35a42 commit 0377000
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/oruga/src/components/modal/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ const _teleport = computed(() =>
);
const savedScrollTop = ref(null);
const modalWidth = ref(toCssDimension(props.width));
const isAnimating = ref(!props.active);
watch(isActive, (value) => {
Expand All @@ -270,7 +269,7 @@ const showX = computed(() =>
);
const customStyle = computed(() =>
!props.fullScreen ? { maxWidth: modalWidth.value } : null,
!props.fullScreen ? { maxWidth: toCssDimension(props.width) } : null,
);
onBeforeUnmount(() => {
Expand Down

0 comments on commit 0377000

Please sign in to comment.