title: Using checkbox selection and row selection together in PrimeNg table
body: <p>I am using PrimeNg table component and needs to implement row selection. I have the following code:</p>
  <pre><code>    &lt;p-table
          [value]=&quot;data&quot;
          [columns]=&quot;columns&quot;
          [(selection)]=&quot;selectedItems&quot;
          selectionMode=&quot;multiple&quot;&gt;
      &lt;ng-template pTemplate=&quot;header&quot;&gt;
          &lt;tr&gt;
              &lt;th&gt;
                  &lt;p-tableHeaderCheckbox style=&quot;margin-left: 5px;&quot;&gt;&lt;/p-tableHeaderCheckbox&gt;
              &lt;/th&gt;
              &lt;th&gt;Header 1&lt;/th&gt;
              &lt;th&gt;Header 2&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/ng-template&gt;
      &lt;ng-template pTemplate=&quot;body&quot; let-row&gt;
          &lt;tr [pSelectableRow]=&quot;row&quot;&gt;
              &lt;td&gt;
                  &lt;p-tableCheckbox [value]=&quot;row&quot;&gt;&lt;/p-tableCheckbox&gt;
              &lt;/td&gt;
              &lt;td&gt;Value 1&lt;/td&gt;
              &lt;td&gt;Value 2&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/ng-template&gt;
  &lt;/p-table&gt;
  </code></pre>
  <p>Basically, I am using the Checkbox selection and multiple selection without metakey as given in the documentation <a href="https://primefaces.org/primeng/showcase/#/table/selection" rel="noreferrer">here</a>. Now when I click on the row, it is selecting and the checkbox is also checked. But when I click on the checkbox, it is not getting selected. If I click on the <code>Select All</code>, then also it is selecting all the rows. When I checked using Developer Tools, it is not making the <code>aria-checked</code> to true even though the click is detected.</p>
  <p>Any workaround for fixing this issue?</p>