You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a SpeedDial and used ButtonProps to configure the SpeedDialAction buttons to use the Link component and have a to destination route for when it gets clicked. This worked fine on desktop, but on mobile an exception is thrown because the onClick function is not defined at SpeedDialAction.js
(This prop seems to be missing from the documentation SpeedDialAction.md)
Your Environment
Tech
Version
Material-UI
^3.2.2
Material-UI lab
^3.0.0-alpha.23
React
^16.5.2
Chrome
70.0.3538.77
react-router-dom
^4.3.1
The text was updated successfully, but these errors were encountered:
I was about to submit the very same issue, with one addition:
I get the following warning after navigating away with component={Link} and to="/other-url".
Did not test it, but my guess is the setState in handleTooltipClose after navigating away and unmounting the component.
React warning
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
in SpeedDialAction (created by ForwardRef(SpeedDialAction))
in ForwardRef(SpeedDialAction) (created by WithStyles(ForwardRef(SpeedDialAction)))
in WithStyles(ForwardRef(SpeedDialAction)) (at Component.jsx:35)
in div (created by ForwardRef(SpeedDial))
in div (created by ForwardRef(SpeedDial))
in ForwardRef(SpeedDial) (created by WithStyles(ForwardRef(SpeedDial)))
Expected Behavior
Configuring the SpeedDialAction button to use a Link component should update route on click on both desktop and touch screen devices.
Current Behavior
On touch screens, an exception is thrown because the SpeedDialAction is expecting an
onClick
function prop to be defined.Steps to Reproduce
https://codesandbox.io/s/q9q7jrjr6j
ButtonProps
that configure the component to beLink
and theto
to be some valid route.Link:
Context
I created a SpeedDial and used
ButtonProps
to configure theSpeedDialAction
buttons to use theLink
component and have ato
destination route for when it gets clicked. This worked fine on desktop, but on mobile an exception is thrown because theonClick
function is not defined atSpeedDialAction.js
(This prop seems to be missing from the documentation SpeedDialAction.md)
Your Environment
The text was updated successfully, but these errors were encountered: