mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
420aa4a657
React File Tree GitOrigin-RevId: fb3141ba8cd9ca0d68e87edb74764a360144c8fe
6 lines
134 B
JavaScript
6 lines
134 B
JavaScript
export default function withoutPropagation(callback) {
|
|
return ev => {
|
|
ev.stopPropagation()
|
|
if (callback) callback(ev)
|
|
}
|
|
}
|