gravity-ui / uikit

Home Page:https://gravity-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

withTableActions HOC with onRowClick: click on action item always triggers click on row

polikashina opened this issue · comments

In this PR renderRowActions property was added, and popup with menu items moved to table's row subtree. Earlier table was not popup's ancestor and onClick event didn't bubble to table's row. Need to add stopPropagation to prevent clicking on row when clicking on menu item

Can you please check this PR to fix problem?

@Raubzeug Hey! Could you check this issue? I think we need a little bit more tests for Table =)