agnes agnes - 15 days ago 5
Javascript Question

Unknown props - react and material-ui

Currently I'm using react and material-ui and I've the following code in my component.

<Dialog
title="Dialog With Actions"
actions={actions}
modal={false}
open={this.state.open}
onRequestClose={this.handleClose}>
Are you sure that you want to proceed?
</Dialog>


I've imported

import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';


But I'm always getting the following error message

Warning: Unknown prop `onKeyboardFocus` on <button> tag. Remove this prop from the element.
Warning: Unknown prop `keyboardFocused` on <button> tag. Remove this prop from the element.

Answer

This is an issue with material-ui that they've already fixed. Wait for their 0.15.2 release or get their master branch now.