react-awesome-query-builder icon indicating copy to clipboard operation
react-awesome-query-builder copied to clipboard

Support for React 15.6.

Open Matej4386 opened this issue 4 years ago • 5 comments

Issuehunt badges

I am stuck with react 15.6. - no way to upgrade (Sharepoint 2019 on premise). Is there a way to use this awesome feature with react 15.6.?

Thank you in advance.


IssueHunt Summary

Backers (Total: $5.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

Matej4386 avatar Oct 28 '21 06:10 Matej4386

You can try version 4.0

ukrbublik avatar Oct 28 '21 08:10 ukrbublik

Thank you, after installing there is dependency for redux: [email protected] requires a peer of react@^16.8.3

Matej4386 avatar Oct 28 '21 12:10 Matej4386

@ukrbublik has funded $5.00 to this issue.


issuehunt-oss[bot] avatar Nov 19 '21 11:11 issuehunt-oss[bot]

@ukrbublik React 15.x didn't have createRef and React.Fragment used in https://github.com/ukrbublik/react-awesome-query-builder/blob/067ce7fd04974639667d60e5659a2c6b26a28b5d/modules/components/containers/Draggable.jsx#L19 and https://github.com/ukrbublik/react-awesome-query-builder/blob/067ce7fd04974639667d60e5659a2c6b26a28b5d/modules/components/item/Group.jsx#L104

So, if you want to support 15.x, I suggest patching 3.0.0 by replacing those createRef and React.Fragment with <Draggable ref="wrapper"/> and this.refs.wrapper

nodtem66 avatar Nov 20 '21 13:11 nodtem66

Also autocomplete hook requires 16.8.

I plan to split lib to submodules: core, mui, antd. Maybe we can use old React API and polyfills to sopport React 15 at leaat in core

ukrbublik avatar Nov 20 '21 15:11 ukrbublik