Cast cell content to string
This commit is contained in:
parent
e7209a2a6e
commit
5b8be4c5b0
2
dist/frappe-datatable.cjs.js
vendored
2
dist/frappe-datatable.cjs.js
vendored
@ -1254,7 +1254,7 @@ class DataManager {
|
||||
const cells = this.rows.map(row => row[colIndex]);
|
||||
|
||||
cells.forEach(cell => {
|
||||
const hay = (cell.content || '').toLowerCase();
|
||||
const hay = String(cell.content || '').toLowerCase();
|
||||
const needle = (keyword || '').toLowerCase();
|
||||
|
||||
if (!needle || hay.includes(needle)) {
|
||||
|
||||
2
dist/frappe-datatable.js
vendored
2
dist/frappe-datatable.js
vendored
@ -1253,7 +1253,7 @@ class DataManager {
|
||||
const cells = this.rows.map(row => row[colIndex]);
|
||||
|
||||
cells.forEach(cell => {
|
||||
const hay = (cell.content || '').toLowerCase();
|
||||
const hay = String(cell.content || '').toLowerCase();
|
||||
const needle = (keyword || '').toLowerCase();
|
||||
|
||||
if (!needle || hay.includes(needle)) {
|
||||
|
||||
@ -1253,7 +1253,7 @@ class DataManager {
|
||||
const cells = this.rows.map(row => row[colIndex]);
|
||||
|
||||
cells.forEach(cell => {
|
||||
const hay = (cell.content || '').toLowerCase();
|
||||
const hay = String(cell.content || '').toLowerCase();
|
||||
const needle = (keyword || '').toLowerCase();
|
||||
|
||||
if (!needle || hay.includes(needle)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user