mig-schema-table 3.0.66 → 3.0.67
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/SchemaTable/index.js +4 -1
- package/dist/index.css +3 -0
- package/package.json +1 -1
|
@@ -513,7 +513,10 @@ function SchemaTable({ Heading = VariableSizeList, checkedIndexes, config, custo
|
|
|
513
513
|
setSearchQuery("");
|
|
514
514
|
}, [useFilterStateHash]);
|
|
515
515
|
const onSearchBlur = React.useCallback(() => {
|
|
516
|
-
if (useFilterStateHash &&
|
|
516
|
+
if (useFilterStateHash &&
|
|
517
|
+
// prevent hash change for undefined vs empty string compare
|
|
518
|
+
(searchQuery || locationHash.searchQuery) &&
|
|
519
|
+
searchQuery !== locationHash.searchQuery) {
|
|
517
520
|
window.location.hash = serializeLocationHash(Object.assign(Object.assign({}, locationHash), { searchQuery }));
|
|
518
521
|
}
|
|
519
522
|
}, [locationHash, searchQuery, useFilterStateHash]);
|
package/dist/index.css
CHANGED