muonw / muonw-powertable

▦ PowerTable is a Svelte component that turns JSON data into an interactive HTML table. Inspired by DataTables. Powered by Svelte.
https://muonw.github.io/muonw-powertable/
Other
220 stars 13 forks source link

New row may not show up when filter/search exists #5

Open muonw opened 2 years ago

muonw commented 2 years ago

Problem When filter/search is applied, new empty rows will not show up if they don't satisfy the filter/search criteria. This makes adding new rows to the datasets inconvenient.

Solution When a new empty row is added, it should not be affected by filters/search until it's [populated with data and] submitted.

muonw commented 2 years ago

Exempting a newly added empty row from search and filtering process will introduce artifacts such as ghost rows that are not represented in the stats. A solution would be to populate the new rows outside of the table before appending them to the dataset.