react-icheck icon indicating copy to clipboard operation
react-icheck copied to clipboard

Warning: Received `false` for non-boolean attribute `cursor`. If this is expected, cast the value to a string.

Open Archakov06 opened this issue 6 years ago • 14 comments

Warning: Received false for non-boolean attribute cursor. If this is expected, cast the value to a string. in input (created by EnhancedSwitch) in div (created by EnhancedSwitch) in label (created by EnhancedSwitch) in EnhancedSwitch (created by Checkbox) in Checkbox (at App.js:132) in div (at App.js:126) in div (at App.js:125) in div (at App.js:87) in div (at App.js:86) in div (at App.js:85) in div (at App.js:84) in div (at App.js:61) in div (at App.js:59) in App (created by Connect(App)) in Connect(App) (created by Route) in Route (at index.js:17) in div (at index.js:16) in Router (created by ConnectedRouter) in ConnectedRouter (at index.js:15) in Provider (at index.js:14)

<Checkbox
                        checkboxClass="icheckbox_square-blue"
                        label="С фотографией"
                      />
                      <Checkbox
                        checkboxClass="icheckbox_square-blue"
                        label="Бесплатно"
                      />

Archakov06 avatar Oct 19 '17 12:10 Archakov06

is there any work around for this problem?

ghost avatar Nov 08 '17 14:11 ghost

No one to correct an error?

matyashovandrey avatar Dec 15 '17 11:12 matyashovandrey

have any ideas how to fix this?

matyashovandrey avatar Dec 15 '17 11:12 matyashovandrey

I have temporary fixed it by opening the 'EnhancedSwitch' under node_modules and commenting the lines where the 'cursor' property is used. This of course is only a temporary solution.

DiegoNovati avatar Dec 21 '17 15:12 DiegoNovati

Can we please get this fixed?

danbopes avatar Jan 04 '18 16:01 danbopes

Same issue here. Someone have any suggestions?

xilanhthanki avatar Jan 07 '18 14:01 xilanhthanki

As suggested by @DiegoNovati open the file "node_modules / react-icheck / lib / EnhancedSwitch.js" and comment the following lines: 126: cursor: _propTypes2['default'].bool, 183: cursor: false,

alfeltrin avatar Jan 08 '18 16:01 alfeltrin

@alfeltrin you're right, but this is only a temporary solution.

vndevil avatar Jan 17 '18 19:01 vndevil

This project is not maintain anymore?

wickedev avatar May 23 '18 02:05 wickedev

Seriously... It seems to be no longer maintained. I fork it and I fix it, don't have the time to wait

johanleroch avatar May 29 '18 11:05 johanleroch

@johanleroch Are you planning to publish your fixed fork with different npm name?

iqqmuT avatar Sep 25 '18 20:09 iqqmuT

Hi @iqqmuT , sorry, I do not plan to do it, I have to much to do on my other projects, but you can fork my fix and deploy with different name on npm if you want.

johanleroch avatar Sep 26 '18 07:09 johanleroch

A workaround is to do this:

import EnhancedSwitch from 'react-icheck/lib/EnhancedSwitch'
import { Checkbox } from 'react-icheck'

// Workaround for https://github.com/luqin/react-icheck/issues/43
EnhancedSwitch.propTypes = {
  ...EnhancedSwitch.propTypes,
  cursor: PropTypes.string
}

const Component = () => <Checkbox cursor="pointer" ...rest_of_props... />

berzniz avatar Oct 04 '18 14:10 berzniz

If someone is still interested, I have recently made a complete rework of this project to continue the development: https://github.com/victorpopkov/react-ui-icheck

npm install react-ui-icheck --save

I can't guarantee that it has the full backwards compatibility, but in most cases, it should be compatible.

victorpopkov avatar Oct 13 '18 05:10 victorpopkov