Skip to content

Commit

Permalink
Merge pull request #283 from silinternational/feature/more-1password-…
Browse files Browse the repository at this point in the history
…props

add data-1p-ignore to prevent 1Password trying to fill
  • Loading branch information
briskt authored Sep 9, 2024
2 parents f2a7ede + 6367aa8 commit 7ba553e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ global.css

# bun
bun.lockb

# Jetbrains
.idea/
1 change: 1 addition & 0 deletions components/custom/DateInput/DateInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const focus = (node) => autofocus && node.focus()

<label class="{$$props.class || ''} custom-field">
<input
data-1p-ignore
type="date"
{required}
{disabled}
Expand Down
1 change: 1 addition & 0 deletions components/custom/SearchableSelect/SearchableSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const onChange = (e) => {
<label class="custom-field" style="--field-padding: {padding}; {$$props.class || ''}">
<input
autocomplete="off"
data-1p-ignore
{disabled}
{maxlength}
class="fs-14 {$$props.class || ''}"
Expand Down
2 changes: 1 addition & 1 deletion components/mdc/Select/Select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ afterUpdate(() => {
bind:this={element}
style="width: {width}"
>
<input {required} type="hidden" {name} />
<input data-1p-ignore {required} type="hidden" {name} />
<div
class="mdc-select__anchor"
aria-required={required}
Expand Down
1 change: 1 addition & 0 deletions components/mdc/TextInput/MoneyInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const focus = (node) => autofocus && node.focus()
attach_money
</i>
<input
data-1p-ignore
{step}
type="number"
min={minValue}
Expand Down

0 comments on commit 7ba553e

Please sign in to comment.