Open wzup opened 6 years ago
Your plugin disables selection on a page. It voluntary sets style="user-select: none". How to disable it? I need to select elements
style="user-select: none"
<Hammer onSwipe={this.handleSwipe} options={{defaults: {cssProps: { userSelect: true }} }} > <Hammer onSwipe={this.handleSwipe} options={{cssProps: { userSelect: true } }} > <Hammer onSwipe={this.handleSwipe} options={{defaults: { behavior: {cssProps: { userSelect: true }} }}} >
https://stackoverflow.com/questions/48418160/how-to-get-rid-of-user-select-none-in-react-hammer-js
There was no way to fix this using the options prop. I ended up quickfixing it by adding a CSS class to the Hammer component and overwriting the hammer CSS:
.hammerContainer { user-select: all !important; }
Your plugin disables selection on a page. It voluntary sets
style="user-select: none"
. How to disable it? I need to select elementshttps://stackoverflow.com/questions/48418160/how-to-get-rid-of-user-select-none-in-react-hammer-js