coreui-react icon indicating copy to clipboard operation
coreui-react copied to clipboard

Id attribute isn't useful on CSmartTable component

Open Getterac7 opened this issue 3 years ago • 0 comments

OS: All Browser: All

The React CSmartTable accepts an id attribute but can't be used to easily find the table.

This code:

<div id="outsideDiv">
  <CSmartTable
    id="insideCSmartTable" 
    ...
  />
</div>

Turns into:

<div id="outsideDiv">
  <div id="insideCSmartTable"></div>
  <div class="...">
    <table class="...">
      ...

It would be nice if the id ended up on the div wrapping the table, or on a new div where outsideDiv is at (wrapping both inner divs).

Getterac7 avatar Jul 06 '22 18:07 Getterac7