-
Notifications
You must be signed in to change notification settings - Fork 2
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
Upgrading from 1.13.7 to 1.13.8 breaks pagination styling #8
Comments
Are you sure it was 1.13.7 to 1.13.8? There were no changes that will affect the paging tags: DataTables/DataTablesSrc@1.13.7...1.13.8 . In fact, looking at our Bootstrap 5 integration, it still uses Perhaps you forgot to include the Bootstrap 5 integration file for DataTables? If it isn't that, can you link to a test case showing the issue please. |
@jlariza Were you able to solve it? I'm facing the same problem. |
@Biszu It seems to work okay in the example. Can you link to a test case showing the issue please? |
In my case it happened when using Datables with NPM and ES modules as instructed on https://datatables.net/download/index My full setup was: import jszip from 'jszip';
import DataTable from 'datatables.net-bs5';
import 'datatables.net-buttons-bs5';
import 'datatables.net-buttons/js/buttons.html5.mjs';
import 'datatables.net-fixedcolumns-bs5';
import 'datatables.net-fixedheader-bs5'; @AllanJard Can you advise how I can provide an example that uses npm & ES modules? |
Yes, you could use https://stackblitz.com/ . Here is an example of Bootstrap 5 with DataTables working in StackBlitz: https://stackblitz.com/edit/vitejs-vite-j2m9yz?file=src%2Fmain.ts%2Cindex.html%2Csrc%2Fstyle.css&terminal=dev . |
We have the same issue. I think it can be because this package have the "datatables.net" dependency fixed to version "1.13.8". Other plugins have it to version "^1.13.0". So yarn installed two version for me. The bs5 plugin have so a own instance of datatables and so the style is wrong. @AllanJard Why is the version fixed to a older version of "datatables.net"? |
The dependency on I'm not sure I see how that would break the paging styling though? Perhaps you can create a stackbltiz example showing the issue please? |
@AllanJard Here can you see it: yarn installed the datatables.net package twice:
|
This is not correct. The release 1.13.10 of datatables.net-bs5 requires version 1.13.8 of datatables.net |
Ah damn. My statement was correct in that is what it should be. Unfortunately, that dependency is an error. I need to write some new release scripts for the legacy v1 DataTables since the release scripts I use are all for v2 now. I think that is probably a new issues from the original one that was reported here, but the effect might be the same. |
As workaround we can add this to the package.json
Yarn then installs only version |
Having a similar issue with the UI library that depends on DT. Even if i try pinning down or override the version of datatables.net, the styles break. |
@BayBreezy Can you use https://stackblitz.com/ or a git repo to create a test case showing the issue so I can look into it please? |
Hey @AllanJard , here is a link to the reproduction: https://stackblitz.com/edit/nuxt-starter-gtvsks?file=nuxt.config.ts,plugins%2Fdatatables.client.ts,app.vue,components%2FUi%2FDatatable.client.vue Just to explain what is happening if you are not familiar with Nuxt3, I have 4 files open.
Please let me know if you have any questions. As you will notice in the config, I am setting the Sadly, the buttons are loaded since the update to V3 of DT and the query builder is not loading either. |
UPDATE So I got everything to work by overriding the versions of "overrides": {
"datatables.net": "1.13.10",
"datatables.net-dt": "1.13.10"
} Everything loaded fine, even after build. |
I've released DataTables 1.13.11 which should address this error. DataTables 2.0.1 is also now available with v1 being in maintenance mode. |
Good day,
I'm using this package to style my dataTables using Bootstrap5. This is how the pagination looks like with
1.13.7
version.And the code uses a
ul
tagHowever, after installing the update, the pagination looks like this:
And it uses
span
tags instead of theul
list element.Was that intended? How may I keep the current look and use the latest version of the package?
Thank you
The text was updated successfully, but these errors were encountered: