Skip to content

Commit 7ba553e

Browse files
authored
Merge pull request #283 from silinternational/feature/more-1password-props
add data-1p-ignore to prevent 1Password trying to fill
2 parents f2a7ede + 6367aa8 commit 7ba553e

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,6 @@ global.css
112112

113113
# bun
114114
bun.lockb
115+
116+
# Jetbrains
117+
.idea/

components/custom/DateInput/DateInput.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const focus = (node) => autofocus && node.focus()
6161

6262
<label class="{$$props.class || ''} custom-field">
6363
<input
64+
data-1p-ignore
6465
type="date"
6566
{required}
6667
{disabled}

components/custom/SearchableSelect/SearchableSelect.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const onChange = (e) => {
8585
<label class="custom-field" style="--field-padding: {padding}; {$$props.class || ''}">
8686
<input
8787
autocomplete="off"
88+
data-1p-ignore
8889
{disabled}
8990
{maxlength}
9091
class="fs-14 {$$props.class || ''}"

components/mdc/Select/Select.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ afterUpdate(() => {
7474
bind:this={element}
7575
style="width: {width}"
7676
>
77-
<input {required} type="hidden" {name} />
77+
<input data-1p-ignore {required} type="hidden" {name} />
7878
<div
7979
class="mdc-select__anchor"
8080
aria-required={required}

components/mdc/TextInput/MoneyInput.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const focus = (node) => autofocus && node.focus()
9191
attach_money
9292
</i>
9393
<input
94+
data-1p-ignore
9495
{step}
9596
type="number"
9697
min={minValue}

0 commit comments

Comments
 (0)