-
Notifications
You must be signed in to change notification settings - Fork 19
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
Kendo Calendar produces an error - Unknown props debug
, reactive
on <div> tag.
#17
Comments
Also, this error comes with another error - Uncaught TypeError: React.findDOMNode is not a function As far as I understand, findDOMNode function was introduced from React v15.0. Has anyone tried it with v15? |
The debug+reactive come from defaultProps. #15 fixes this problem.
KendoWidgetMixin.js:
/**
* Initialize Kendo component
*/
componentDidMount: function () {
if (this.props.debug) console.log('kendo widget mounting... ', widget);
- this.elem = React.findDOMNode(this);
+ this.elem = this.refs.elem;
this.$elem = $(this.elem);
this.$widget = mountKendoWidget(this, widget);
if (this.props.debug) console.log('kendo widget mounted:', widget, ', widget=', this.$widget);
if (this.props.debug) console.log('elem=', this.elem);
if (this.props.debug) console.log('$elem=', this.$elem);
},
/**
* Default Kendo widget renderer
*/
render: function () {
var other = _.omit(this.props, [ 'options', 'children', 'tag' ]);
+ other.ref = "elem";
return React.DOM[this.props.tag](other, this.props.children);
} |
Fixes part of langateam#17. See jsx-eslint/eslint-plugin-react#678
Publish to NPM please. |
I've been trying to use the Kendo UI's Calendar in the following way.
This ends up getting an error - Unknown props
debug
,reactive
onThere is no such a tag as "debug" or "reactive" anywhere in my js files (as well as in html/php files). If I remove the '' tag, the error disappears.
Could I have any advice?
The text was updated successfully, but these errors were encountered: