sr-npm 1.7.279 → 1.7.281

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.279",
3
+ "version": "1.7.281",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -164,9 +164,8 @@ function init(_$w) {
164
164
  const debouncedSearch = debounce(()=>applyFilters(_$w), 400,thisObjectVar);
165
165
  _$w('#searchInput').onInput(debouncedSearch);
166
166
  _$w('#searchInput').onBlur(()=>{
167
- if(searchInputBlurredFirstTime)
167
+ if(searchInputBlurredFirstTime && _$w('#searchInput').value.trim() !== '')
168
168
  {
169
- console.log("search input blurred");
170
169
  _$w('#searchInput').focus();
171
170
  searchInputBlurredFirstTime=false;
172
171
  }
package/pages/homePage.js CHANGED
@@ -91,7 +91,7 @@ async function handleSearchInput(_$w) {
91
91
  const trimmedInput = searchInput.trim();
92
92
 
93
93
  const fieldsToSearch = [
94
- { field: 'title', searchTerm: trimmedInput },
94
+ // { field: 'title', searchTerm: trimmedInput },
95
95
  { field: 'cityText', searchTerm: trimmedInput }
96
96
  ];
97
97
 
@@ -20,7 +20,7 @@ function getFilter(fieldsToSearch = [], mode = 'or') {
20
20
  ? (mode === 'or' ? filter.or(condition) : filter.and(condition))
21
21
  : condition;
22
22
  });
23
-
23
+ console.log("filter@@@@@ is: ", filter);
24
24
  return filter;
25
25
  }
26
26