cortexrd / Knack-Toolkit-Library

Knack Toolkit Library
MIT License
26 stars 6 forks source link

_hc not working when col header has special character in it #323

Closed amandajane-mo closed 2 months ago

amandajane-mo commented 2 months ago

Hi Norm,

I was trying to use your ktl.views.hideTableColumns() function when, incidentally, the col header had a ? in it (Duplicate?). The column didn't hide, the thead.length is 0 as there are no matches for $('#' + viewId + ' thead tr th:textEquals("' + header + '")'), so the column doesn't hide.

I then went on to test hiding the same column using _hc, again this didn't work, I then tested with various other special characters and same issue arises.

Thanks Amanda

cortexrd commented 2 months ago

Now I understand something that's been bothering me for a long time... I've often been told that I was "quite a special character". I guess that explains why I can't hide anywhere. You guys keep finding me every time!

cortexrd commented 2 months ago

It's fixed in Dev code. Test and close if all ok.

Norm

amandajane-mo commented 2 months ago

Hi Norm,

You're definitely a special character and my Duplicate? column is now hiding as expected.

Excellent Thanks