mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
fix(password-input): support invalid state when used in a FluidForm
This commit is contained in:
parent
83c11fd460
commit
c9c172f88f
1 changed files with 41 additions and 33 deletions
|
@ -192,6 +192,13 @@
|
|||
on:blur
|
||||
on:paste
|
||||
/>
|
||||
{#if isFluid && invalid}
|
||||
<hr class="bx--text-input__divider" />
|
||||
<div class="bx--form-requirement" id="{errorId}">
|
||||
{invalidText}
|
||||
</div>
|
||||
{/if}
|
||||
{#if !(isFluid && invalid)}
|
||||
<button
|
||||
type="button"
|
||||
disabled="{disabled}"
|
||||
|
@ -225,6 +232,7 @@
|
|||
<View class="bx--icon-visibility-on" />
|
||||
{/if}
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
{#if !isFluid && invalid}
|
||||
<div class:bx--form-requirement="{true}" id="{errorId}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue