design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

Pass the event through on SLDSButton `onClick`?

Open mmoriar1 opened this issue 10 years ago • 1 comments

Currently the origin event is dropped, can we pass through so we can preventDefault or stopPropagation or anything else we need to do on it?

Need to pass (e) through here, if we want to. If there's a more elegant way, let me know :) https://github.com/salesforce-ux/design-system-react/blob/master/components/SLDSButton/index.jsx#L94

mmoriar1 avatar Mar 08 '16 06:03 mmoriar1

Fixed in this PR: https://github.com/salesforce-ux/design-system-react/pull/202

donnieberg avatar Mar 09 '16 02:03 donnieberg