Skip to content

Commit

Permalink
Call new DataTable only on table objects
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Sep 22, 2024
1 parent 51c7cc8 commit f8363f8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
ITables ChangeLog
=================

2.2.1-dev (2024-09-??)
------------------

**Fixed**
- We have fixed a HTML pop up warning when displaying Pandas Style objects in Quarto ([#317](https://github.com/mwouts/itables/issues/317))


2.2.0 (2024-09-22)
------------------

Expand Down
3 changes: 3 additions & 0 deletions src/itables/html/datatables_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import {DataTable, jQuery as $} from 'https://www.unpkg.com/dt_for_itables/dt_bundle.js';

document.querySelectorAll("#table_id:not(.dataTable)").forEach(table => {
if (!(table instanceof HTMLTableElement))
return;

// Define the table data
const data = [];

Expand Down
2 changes: 1 addition & 1 deletion src/itables/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""ITables' version number"""

__version__ = "2.2.0"
__version__ = "2.2.1-dev"

0 comments on commit f8363f8

Please sign in to comment.