Improve `dataFromClickEvent` method

Avoid DOM walking, improve reliability