Skip to content

Commit 2c0c558

Browse files
committed
Merge branch 'feature/add-disabled-prop' of github.com:stevenbuehner/vue-bootstrap-typeahead
2 parents 89cbd15 + d435f39 commit 2c0c558

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ maxMatches | `Number` | 10 | Maximum amount of list items to appear.
119119
minMatchingChars | `Number` | 2 | Minimum matching characters in query before the typeahead list appears
120120
prepend | `String` | | Text to be prepended to the `input-group`
121121
append | `String` | | Text to be appended to the `input-group`
122+
disabled | `Boolean` | false | Enable or disable input field
122123

123124
### Events
124125
Name | Description

src/components/VueBootstrapTypeahead.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
:placeholder="placeholder"
1414
:aria-label="placeholder"
1515
:value="inputValue"
16+
:disabled="disabled"
1617
@focus="isFocused = true"
1718
@blur="handleBlur"
1819
@input="handleInput($event.target.value)"
@@ -72,6 +73,10 @@ export default {
7273
value: {
7374
type: String
7475
},
76+
disabled: {
77+
type: Boolean,
78+
default: false
79+
},
7580
data: {
7681
type: Array,
7782
required: true,

0 commit comments

Comments
 (0)