We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to disable the vibration with vibrate=false.
vibrate=false
For me it looks like it's becuase this guard is always true due to prevProps.vibrate always being true.
true
prevProps.vibrate
Modifying the guard to the following seems to be working as intended: if (this.props.vibrate && this.props.isOpen && !prevProps.isOpen) {...}
if (this.props.vibrate && this.props.isOpen && !prevProps.isOpen) {...}
The text was updated successfully, but these errors were encountered:
Hi @7arsandre good spot, happy to take a pull request if you have a fix to hand?
Sorry, something went wrong.
@robcalcroft I will do a PR on this! 👌
Pushed the PR: #52 @robcalcroft
No branches or pull requests
Unable to disable the vibration with
vibrate=false
.For me it looks like it's becuase this guard is always
true
due toprevProps.vibrate
always beingtrue
.Modifying the guard to the following seems to be working as intended:
if (this.props.vibrate && this.props.isOpen && !prevProps.isOpen) {...}
The text was updated successfully, but these errors were encountered: