Using an api search for "null" values in 3.x inconsistent with 2.x functionality

Using an api search for "null" values in 3.x inconsistent with 2.x functionality

GarounGaroun Posts: 4Questions: 2Answers: 0
edited August 28 in Free community support

Nightly (as of 20260828.1123 EDT): https://live.datatables.net/merameze/1/edit
* Select Nulls button fails to only select null items, not sure if the recommendation for that has changed

2.3.8: https://live.datatables.net/cuhiwequ/1/edit
* Clicking the various buttons works as expected

Prior to 3.x the recommended way to search on null values was to use a regex with "^$" as the search criteria, however in 3.x this same code now clears the entire table rather than only showing null values

Note: I was able to get around this using a custom function for the search, but I'd have expected a regex search to work as well without needing the custom function since it was working in 2.x

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,972Questions: 1Answers: 10,980 Site admin
    Answer ✓

    That was not intentional - thank you for flagging that up. I had a "spare" check in for the data, and an empty string being falsy tripped it up. I've committed a fix and the nightly build as it now. This is the example updated with the nightly (note the cache busting query string on the script tag to make sure it gets the latest).

    This will be part of 3.0.3 which I'd hoped to release today, but its going to be early next week now.

    Allan

  • GarounGaroun Posts: 4Questions: 2Answers: 0
    edited August 28

    Ignore/Delete this, was an edit to my response but the forum posted it as a new comment

Sign In or Register to comment.