I’m currently trying to implement a button in a popup that, when pressed, selects every row in the table beneath it.
The button uses the onClick event below:
self.parent.parent.getChild("Table").props.selection.data = self.parent.parent.getChild("Table").props.data
This button works properly in every case except for the first time that the button is clicked after the popup is loaded. When the button is first clicked, it very briefly sets self.parent.parent.getChild("Table").props.selection.data = self.parent.parent.getChild("Table").props.data, before immediately setting self.parent.parent.getChild("Table").props.selection.data = []. All subsequent clicks of the button result in every row being selected as expected.
Is there a way to circumvent this behavior?