DataTables / DataTables/Responsive
Bug clearing the search field & using Savestate the table is not resized correctly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 151
- Forks
- 91
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
When using savestate and responsive there is an issue when clearing the search value as it is not resize / display the table correctly.
To reproduce
http://jsfiddle.net/lenamtl/nm5k1ro3/3/
search for Jane
click back button of your browser, then get back to Jsfiddle
clear the search value
Now the table is not displayed correctly
If you refresh the page this is ok.
This is not happening if you don't quit the page and clear the search field.
So this should be the same when we quit and go back then clear the search field.
As a temporary solution I'm looking for a way to attach a page reload when clearing the search field
https://datatables.net/forums/discussion/comment/143193#Comment_143193
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked JSFiddle reproduction and compare the table after browser back navigation and clearing the search field against a page refresh or clearing it without leaving. Trace the Responsive and Savestate behavior triggered by that search change. Done means the table is displayed and resized correctly after returning to the page and clearing the search value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100