Skip to content

Commit

Permalink
Fix responsive omitting special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed Apr 18, 2024
1 parent 1581c97 commit 79d00e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/powergrid.js": "/powergrid.js?id=8762f1711fdcea9fbabfbf095ffd50fe",
"/powergrid.js": "/powergrid.js?id=8dbd9927fb1c6a57be1f269d484ae3c8",
"/bootstrap5.css": "/bootstrap5.css?id=03aba1df82c23db07c1d1096efcd42ae",
"/tailwind.css": "/tailwind.css?id=926eb6f6b0aff9d71d6b602fab157be2",
"/tom-select.css": "/tom-select.css?id=7af730d2c4bf937316d4002948b1571d",
Expand Down
2 changes: 1 addition & 1 deletion dist/powergrid.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/pgResponsive/onResize.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function fillTableExpand(element, hideItems) {

if (!expandContainer) continue

let rowName = element.querySelector(`table thead tr th:nth-child(${hideItem})`).textContent.replace(/[^a-zA-Z0-9\s]/g, '').trim()
let rowName = element.querySelector(`table thead tr th:nth-child(${hideItem}) span[data-value]`).textContent

const rowValue = row.querySelector(`tr:last-child td:nth-child(${hideItem})`)?.innerHTML

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/cols.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ class="{{ data_get($theme, 'table.thClass') . ' ' . $column->headerClass }}"
@else
<span style="width: 6px"></span>
@endif
<span>{!! $column->title !!}</span>
<span data-value>{!! $column->title !!}</span>
</div>
</th>

0 comments on commit 79d00e1

Please sign in to comment.