@iankibetsh/shframework 5.0.4 → 5.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/library.js +2 -3
- package/dist/library.mjs +2 -3
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -2192,7 +2192,7 @@ function updateModelValue(){
|
|
|
2192
2192
|
if(selectedItems.length === 0) {
|
|
2193
2193
|
if(props.allowUserInput){
|
|
2194
2194
|
emit('update:modelValue', searchText.value);
|
|
2195
|
-
|
|
2195
|
+
return
|
|
2196
2196
|
} else {
|
|
2197
2197
|
emit('update:modelValue', null);
|
|
2198
2198
|
}
|
|
@@ -2219,16 +2219,15 @@ function filterData(e){
|
|
|
2219
2219
|
showDropDown();
|
|
2220
2220
|
let filterValue = e.target.innerText;
|
|
2221
2221
|
searchText.value = filterValue;
|
|
2222
|
+
updateModelValue();
|
|
2222
2223
|
if (props.url) {
|
|
2223
2224
|
fetchRemoteData();
|
|
2224
|
-
updateModelValue();
|
|
2225
2225
|
} else if(props.data) {
|
|
2226
2226
|
suggestions.value = props.data.filter(item=>{
|
|
2227
2227
|
if(item.name.toLowerCase().includes(filterValue.toLowerCase())){
|
|
2228
2228
|
return item
|
|
2229
2229
|
}
|
|
2230
2230
|
});
|
|
2231
|
-
updateModelValue();
|
|
2232
2231
|
} else {
|
|
2233
2232
|
console.log("Error: no data or url provided");
|
|
2234
2233
|
}
|
package/dist/library.mjs
CHANGED
|
@@ -2180,7 +2180,7 @@ function updateModelValue(){
|
|
|
2180
2180
|
if(selectedItems.length === 0) {
|
|
2181
2181
|
if(props.allowUserInput){
|
|
2182
2182
|
emit('update:modelValue', searchText.value);
|
|
2183
|
-
|
|
2183
|
+
return
|
|
2184
2184
|
} else {
|
|
2185
2185
|
emit('update:modelValue', null);
|
|
2186
2186
|
}
|
|
@@ -2207,16 +2207,15 @@ function filterData(e){
|
|
|
2207
2207
|
showDropDown();
|
|
2208
2208
|
let filterValue = e.target.innerText;
|
|
2209
2209
|
searchText.value = filterValue;
|
|
2210
|
+
updateModelValue();
|
|
2210
2211
|
if (props.url) {
|
|
2211
2212
|
fetchRemoteData();
|
|
2212
|
-
updateModelValue();
|
|
2213
2213
|
} else if(props.data) {
|
|
2214
2214
|
suggestions.value = props.data.filter(item=>{
|
|
2215
2215
|
if(item.name.toLowerCase().includes(filterValue.toLowerCase())){
|
|
2216
2216
|
return item
|
|
2217
2217
|
}
|
|
2218
2218
|
});
|
|
2219
|
-
updateModelValue();
|
|
2220
2219
|
} else {
|
|
2221
2220
|
console.log("Error: no data or url provided");
|
|
2222
2221
|
}
|