0

I've a strange issue with a PrimeNG p-datatable. I setted resizableColumns and it works, but when I resize a column all text in table is selected, as you can see in following image. This is my code:

<p-dataTable [value]="list" scrollable="true" [rows]="10" [style]="{'background-color':'#cecece'}" 
                        [paginator]="true" paginatorPosition="top" [pageLinks]="3" [rowsPerPageOptions]="[5,10,20]"
                        resizableColumns="true" columnResizeMode="expand">
...

enter image description here Is it a component bug? Thanks

bigskull
  • 541
  • 2
  • 18
  • 28
  • Can you provide working code/plunkr that can reproduce the issue. The demos on Primeng website do not have such bug. – Jonathan Hamel Feb 05 '18 at 16:56
  • I tried with a page containing just a table and the error persist. I think it can be related to something in my app. I solved with a css rule which disable the text selection. – bigskull Feb 06 '18 at 11:16
  • You should try this code use class to set min-max width .[https://stackoverflow.com/questions/51075942/how-set-primeng-data-table-columns-auto-fit](https://stackoverflow.com/questions/51075942/how-set-primeng-data-table-columns-auto-fit) – Nitin Wahale Jul 26 '18 at 06:42

0 Answers0