Disable client side search when server side search is enabled in table widget

This commit is contained in:
vicky-primathon.in 2021-05-05 12:39:15 +05:30
parent 10b8cdc32a
commit e96fa63f6d

View File

@ -360,7 +360,10 @@ export default {
},
};
const searchKey = props.searchText ? props.searchText.toLowerCase() : "";
const searchKey =
props.searchText && !props.onSearchTextChanged
? props.searchText.toLowerCase()
: "";
const finalTableData = sortedTableData.filter((item) => {
const searchFound = searchKey