Page 1 of 1

DataTable column with html text does not call select event

Posted: 10 Jan 2019, 18:37
by bbf-it-gmbh
hello,

i try to display a font awesome icon in a datatable field like:

Code: Select all

<p:column>
    <i class="fa fa-fw fa-venus"></i>
</p:column>
Now if i try to select a row by clicking into the field (on the font awesome icon) the select event is not triggered.

I use Primefaces version 6.2.12

thanks guys

Re: DataTable column with html text does not call select event

Posted: 11 Jan 2019, 14:36
by Melloware
I think your issue may be related to this one: https://github.com/primefaces/primefaces/issues/3310

Related to which jquery selectors are being used to detect selection. Read through that thread there is a suggested fix of adding add style class "ui-c" to make it work?