Skip to content

Commit a5d5256

Browse files
committed
fix: fixed input types based on type prop
1 parent 5522b7c commit a5d5256

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SearchInput.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<slot name="prepend-inner"></slot>
88
<input
99
ref="inputRef"
10-
type="search"
10+
:type="type"
1111
data-search-input="true"
1212
:data-shortcut-enabled="shortcutListenerEnabled"
1313
:value="modelValue"

tests/searchInput.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('SearchInput.vue', () => {
4444
}
4545
})
4646

47-
const input = wrapper.find(typeProp)
47+
const input = wrapper.find(`input[type="${typeProp}"]`)
4848

4949
expect(input).toBeTruthy()
5050
})

0 commit comments

Comments
 (0)