Clear time without closing toast
Previously clicking the clear-time button set includeTime to false and also called done(), which closed the surrounding toast. This change removes the done() call so clearing the time only clears the time input state (includeTime = false) without dismissing the toast UI.
This commit is contained in:
parent
a13008bb71
commit
d0af0e80a8
|
|
@ -162,7 +162,7 @@
|
|||
{/each}
|
||||
</select>
|
||||
</div>
|
||||
<button onclick={() => { includeTime = false; done(); }} class="ml-auto opacity-40 hover:opacity-80">
|
||||
<button onclick={() => (includeTime = false)} class="ml-auto opacity-40 hover:opacity-80">
|
||||
<svg class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" />
|
||||
</svg>
|
||||
|
|
|
|||
Loading…
Reference in a new issue