-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table column searchable with datepicker component #646
Comments
Nvm, i figured why, 2 months ago i did a small change to the Now, to fix it, i made this smalls changes:
This will use the value that receives and check if it is a date by the regex's applied. Idk if this could be useful or right done, but it seems to work for me. Only problem i see, its that maybe for each check or time that function is called it makes another loop, but works. I tested with this values: '2023-10-27' |
@Diogo-Coding Could you please clarify the value of your changes? What behaviour will change? |
I changed the escapeRegExpChar function to allow dates filtering on searchable column in oruga tables, old one used the regex expresion for all type of values that were strings, that made tables not able to use datetime components or even normal input with values that was dates, to filter. This changes allow it. At first i thought it was a bug from oruga library but it was from a small change i did in the past trying to reach this. I just added a new function isValidDate and added an if on escapeRegExpChar function |
Overview of the problem
Oruga version: [0.7.0]
Vuejs version: [3.2.13]
OS/Browser:Chrome
Description
Searching on numeric camps not working as expected, "Peso" column is a string with the weight that was saved on DB, it always a number with 2 decimals. Even introducing exact number of weight it doesnt filter correctly
Steps to reproduce
Actual behavior
The text was updated successfully, but these errors were encountered: