mirror of
https://github.com/discourse/discourse.git
synced 2025-03-07 11:25:29 +08:00

In the expand table event handler, we currently rely on `event.target` to select the table being expanded. Sometimes, the target is the svg icon wrapped inside the button instead of the button itself. This throws things off. This change uses `currentTarget` which refers to the button element even if the event originated from svg icon.