primefaces / primeui

Rich set of javascript-css only widgets
http://www.primefaces.org/primeui
278 stars 125 forks source link

Compatibility issue between stickyHeader and column filters #234

Closed StephenCWills closed 8 years ago

StephenCWills commented 8 years ago

The issue as described in pull request #225:

When using stickyHeader and column filters together in the puidatatable, the sticky header covers up the original header including the input fields for the filters. However, the filter function still uses the text in the input fields of the original header, not the sticky header. This change modifies the filterElements array in the _initStickyHeader function so that the filter function uses the input fields in the sticky header instead.

To replicate, apply "stickyHeader: true" to the data table and "filter: true" to the columns.

http://jsfiddle.net/staphen/axaszzep/