fix: 🐛 Apply range filter only for numbers (#176)
This commit is contained in:
parent
17cddc05f1
commit
7ee8ca9304
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
The MIT License
|
The MIT License
|
||||||
|
|
||||||
Copyright (c) 2018 Frappé Technologies Pvt. Ltd. <developers@frappe.io>
|
Copyright (c) 2018 Frappe Technologies Pvt. Ltd. <developers@frappe.io>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
<title>Frappé DataTable</title>
|
<title>Frappe DataTable</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: 'Tahoma';
|
font-family: 'Tahoma';
|
||||||
@ -17,7 +17,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>Frappé DataTable</h1>
|
<h1>Frappe DataTable</h1>
|
||||||
<button onclick="datatable.render()">Render Table</button>
|
<button onclick="datatable.render()">Render Table</button>
|
||||||
<button onclick="datatable.refresh()">Refresh Data</button>
|
<button onclick="datatable.refresh()">Refresh Data</button>
|
||||||
<button onclick="switchToTreeView()" data-action="treeview">TreeView</button>
|
<button onclick="switchToTreeView()" data-action="treeview">TreeView</button>
|
||||||
|
|||||||
@ -189,7 +189,7 @@ function guessFilter(keyword = '') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keyword.split(':').length === 2) {
|
if (keyword.split(':').length === 2 && keyword.split(':').every(v => isNumber(v.trim()))) {
|
||||||
compareString = keyword.split(':');
|
compareString = keyword.split(':');
|
||||||
return {
|
return {
|
||||||
type: 'range',
|
type: 'range',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user