Skip to content

Commit

Permalink
Patch: Correct possible issue with primevue datatables rowgroup colspan
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Cytra committed May 23, 2023
1 parent 730c088 commit df0756a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ When complete, build the app for service:
npm run build
```

Apply the patch:

```sh
patch -Nr - --version-control none -p0 < patches/primevue-datatable-correct-rowgroup-colspan.patch
```

---

## Serve the application
Expand Down
23 changes: 23 additions & 0 deletions patches/primevue-datatable-correct-rowgroup-colspan.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- node_modules/primevue/datatable/TableBody.vue
+++ node_modules/primevue/datatable/TableBody.vue
@@ -6 +6 @@
- <td :colspan="columnsLength - 1">
+ <td :colspan="columnsLength">

--- node_modules/primevue/datatable/datatable.cjs.js
+++ node_modules/primevue/datatable/datatable.cjs.js
@@ -1296 +1296 @@
- colspan: $options.columnsLength - 1
+ colspan: $options.columnsLength

--- node_modules/primevue/datatable/datatable.esm.js
+++ node_modules/primevue/datatable/datatable.esm.js
@@ -1296 +1296 @@
- colspan: $options.columnsLength - 1
+ colspan: $options.columnsLength

--- node_modules/primevue/datatable/datatable.js
+++ node_modules/primevue/datatable/datatable.js
@@ -1286 +1286 @@
- colspan: $options.columnsLength - 1
+ colspan: $options.columnsLength

0 comments on commit df0756a

Please sign in to comment.