Skip to content
New issue

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

Warning: React does not recognize the handleAxis prop on a DOM element #175

Closed
evoyy opened this issue Jun 14, 2021 · 6 comments
Closed

Comments

@evoyy
Copy link

evoyy commented Jun 14, 2021

I started seeing this warning in the console after updating from 3.0.1 -> 3.0.2

I'm using the component as follows:

<ResizableBox
    handle={<span className="resize-handle" />}
    ...
>
@STRML STRML closed this as completed in 9082fec Jun 14, 2021
@STRML
Copy link
Collaborator

STRML commented Jun 14, 2021

Fixed in 9082fec, will release soon

@evoyy
Copy link
Author

evoyy commented Jun 15, 2021

Sorry, I'm still seeing this warning after upgrading to 3.0.3

STRML added a commit that referenced this issue Jun 15, 2021
@STRML
Copy link
Collaborator

STRML commented Jun 15, 2021

Thanks. Made a mistake in the fix. Fixed in 3.0.4.

@Peatechen
Copy link

Peatechen commented Jun 24, 2021

Sorry, I'm still seeing this warning after upgrading to 3.0.4
@STRML

@danben4
Copy link

danben4 commented Nov 2, 2021

Any news on this? 🤓

@wiyantotan
Copy link

wiyantotan commented Apr 18, 2022

I fixed the warning by destructuring the handleAxis props from the custom handle component.

For an example took from Readme.md

class MyHandleComponent extends React.Component {
  render() {
    const {handleAxis, innerRef, ...props} = this.props;
    return <div ref={innerRef} className={`foo handle-${handleAxis}`} {...props} />
  }
}
const MyHandle = React.forwardRef((props, ref) => <MyHandleComponent innerRef={ref} {...props} />);

<Resizable handle={<MyHandle />} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants