@abi-software/map-side-bar 2.8.3-beta.4 → 2.8.3-beta.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/package.json
CHANGED
|
@@ -208,16 +208,17 @@ export default {
|
|
|
208
208
|
if (this.numberOfHits === 1 && !('ready' in this.results[0])) {
|
|
209
209
|
this.onConnectivityCollapseChange(this.results[0]);
|
|
210
210
|
}
|
|
211
|
+
if (this.numberOfHits > 0 && ('ready' in this.results[0])) {
|
|
212
|
+
this.$refs.filtersRef.checkShowAllBoxes();
|
|
213
|
+
this.searchInput = '';
|
|
214
|
+
this.filter = [];
|
|
215
|
+
}
|
|
211
216
|
}
|
|
212
217
|
},
|
|
213
218
|
// watch for connectivityEntry changes
|
|
214
219
|
// card should be expanded if there is only one entry and it is ready
|
|
215
220
|
connectivityEntry: function (newVal, oldVal) {
|
|
216
|
-
if (newVal.length
|
|
217
|
-
this.$refs.filtersRef.checkShowAllBoxes();
|
|
218
|
-
this.searchInput = '';
|
|
219
|
-
this.filter = [];
|
|
220
|
-
} else if (newVal.length === 1 && newVal[0].ready) {
|
|
221
|
+
if (newVal.length === 1 && newVal[0].ready) {
|
|
221
222
|
// if the changed property is connectivity source, do not collapse
|
|
222
223
|
if (
|
|
223
224
|
(newVal[0].connectivitySource !== oldVal[0].connectivitySource) &&
|