Hi all, I'm using an EUI BasicTable with the selection feature for performing actions against rows of data. However, when I programatically update the tables selection (for example in response to an action against a row) the table UI selection isn't updated. This is a bit difficult to explain, but here's a code snippet:
In this example, I've coded the table such that when you select a row and click the acknowledge button, the selection state is zero'd out, with the intention that the checkbox selection is removed in the table UI. However, while the state is updated, the table UI isn't reflected to render the change. Am I doing something wrong here?
A workaround for this I can think of is to pass a key prop to the EuiBasicTable component and change that key prop when resetting the selection status.
A different key signals to react that this is another component in the tree and it will set up a fresh instance which will effectively reset the selection state.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.