Primeng: Sort event should not be triggered if target is clickable

Created on 26 Sep 2016  路  4Comments  路  Source: primefaces/primeng

Hi,
I have a MultiSelect as template in a datable column header and the column is also sortable,but when clicking to drop down the menu it also sorts the table. Is there a way to separate both use cases?

defect

Most helpful comment

This should also happen when you add an input or button or anchor inside table header. We need to find a way to stop sorting in these cases.

All 4 comments

adding (click)="onFilterInputClick($event)" on MultiSelect or regular select prevents sorting.

thanks for the advice but it still not working, I'm getting the exception 'self.context.onFilterInputClick' is undefined as shown in the attached screenshot.
screen shot 2016-09-26 at 15 58 35

I was editing Datatable template and put that click event there. Outside of datatable that method doesn't exist.

This should also happen when you add an input or button or anchor inside table header. We need to find a way to stop sorting in these cases.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cyberrranger picture cyberrranger  路  3Comments

Helayxa picture Helayxa  路  3Comments

Helayxa picture Helayxa  路  3Comments

markgoho picture markgoho  路  3Comments

garethlewis picture garethlewis  路  3Comments