Skip to content

Commit

Permalink
fix(popper): refresh when content update
Browse files Browse the repository at this point in the history
  • Loading branch information
koory1st committed Mar 4, 2024
1 parent 8b0c532 commit d0c157d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/popper/src/lib/popper.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
popperRef = popperRef1;
export let content = '';
$: content && updatePopper();
let outer;
async function doShow() {
Expand Down
5 changes: 3 additions & 2 deletions packages/popper/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
let ref;
let visible = false;
let content = '1';
</script>

<div class="aaa">
Expand All @@ -24,8 +25,8 @@
<!-- </button>-->
<!-- <N content="1111" virtualRef={ref} virtualTriggering {visible} />-->

<N content="11111" trigger="click">
<input />
<N {content}>
<button on:click={() => (content += '1')}>111</button>
</N>
</div>

Expand Down

0 comments on commit d0c157d

Please sign in to comment.