Skip to content

Commit

Permalink
fix: hide/show control on password input
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Oct 8, 2024
1 parent 3479ed6 commit c370e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/forms/input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
export let label: string | undefined = undefined;
export let helperText: string | undefined = undefined;
export let placeholder: string | undefined = undefined;
export let hidable:boolean | undefined = undefined;
</script>

<FieldController {form} {fieldPath} let:value let:errorText let:updateValue>
Expand All @@ -22,6 +23,7 @@
name={fieldPath}
{label}
{placeholder}
{hidable}
helper-text={helperText}
error-text={errorText}
class:d-invalid={errorText}
Expand Down
1 change: 1 addition & 0 deletions src/routes/[[lang]]/(auth)/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
type="password"
placeholder={'password'}
label={'password'}
hidable
/>
<Checkbox fieldPath="conditions" {form}
>{m.Accept()}
Expand Down

0 comments on commit c370e8d

Please sign in to comment.