Skip to content

Commit

Permalink
fix: action sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanrk committed Jun 22, 2022
1 parent 61249d7 commit 7040561
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/action-sheet/src/ActionSheet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
let className = "";
let selectedIndex = 0;
let modalHeight = 0;
let modalHeight = "100%";
export { className as class };
export let selectedKey = "";
export let caption = "";
Expand Down Expand Up @@ -100,7 +100,7 @@

<BottomSheet
bind:open
bind:height={modalHeight}
height={modalHeight}
class={className}
{maskClosable}
{closable}
Expand Down Expand Up @@ -139,7 +139,7 @@
</header>
<ul
class="resp-action-sheet__body"
style="height: {modalHeight - 180}px"
style={`height: calc(${modalHeight} - 180px)`}
on:change={handleSelectOption}
>
{#each options as { label, value, disabled = false, selected = false, ...otherProps } (`${selectedKey}.${value}`)}
Expand Down

0 comments on commit 7040561

Please sign in to comment.