Skip to content

Commit c029214

Browse files
committed
Updated
1 parent f016e22 commit c029214

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

public/default.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ ul {
3737
.column.is-one-third {
3838
width: 33%;
3939
}
40-
4140
.is-fullwidth {
4241
width: 100%;
42+
}
43+
44+
.autocomplete-input {
45+
width: 100%;
4346
}

src/SimpleAutocomplete.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
export let autocompleteOffValue = "off"
173173
174174
// allow custom input attributes
175-
export let inputAttributes = { autocomplete: "new-password" }
175+
export let inputAttributes = "{ autocomplete: 'new-password' }"
176176
177177
// make the input readonly
178178
export let readonly = undefined
@@ -1199,7 +1199,7 @@
11991199
on:keypress={onKeyPress}
12001200
on:dragover={(event) => dragover(event, selectedItem.length - 1)}
12011201
on:drop={(event) => drop(event, selectedItem.length - 1)}
1202-
{inputAttributes}
1202+
{...inputAttributes}
12031203
{...$$restProps}
12041204
/>
12051205
{#if clearable}

0 commit comments

Comments
 (0)