Skip to content

Commit

Permalink
conditional render input
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Apr 18, 2024
1 parent 4b709e0 commit 1802033
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
const inputState = getSwitchInputState();
</script>

<input {...inputState.props} style={styleToString(srOnlyStyles)} />
{#if inputState.shouldRender}
<input {...inputState.props} style={styleToString(srOnlyStyles)} />
{/if}

0 comments on commit 1802033

Please sign in to comment.