You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ReactTapEventPlugin(js.undefined) is not provided in the JsApp body the browser's console throws the following warning:
warning.js:36Warning:Unknown prop `onTouchTap` on <button> tag. Removethis prop from the element. For details, see https://fb.me/react-unknown-prop
in button (created by EnhancedButton)
in EnhancedButton (created by FlatButton)
in FlatButton (created by NavToolBar)
in div (created by ToolbarGroup)
in ToolbarGroup (created by NavToolBar)
in div (created by Toolbar)
in Toolbar (created by NavToolBar)
in NavToolBar (created by Router)
in MuiThemeProvider (created by Router)
in div (created by Router)
in nav (created by Router)
in div (created by Router)
in Router
Just putting it in the JsApp solves the warning, just like this:
objectMyAppextendsJSApp {
//TODO: dev-server complains that we load several times?ReactTapEventPlugin(js.undefined)
@JSExportoverridedefmain():Unit= {
valbaseTheme=Mui.Styles.LightRawThemevaltheme:MuiTheme=Mui.Styles.getMuiTheme(baseTheme)
AppCSS.load()
valrouter=MuiMuiThemeProvider(muiTheme = theme)(AppRouter.router())
router.renderIntoDOM(dom.document.getElementById("content"))
()
}
}
The text was updated successfully, but these errors were encountered:
If the plugin is not present some Mui functionality does not work, like rendering MuiIconMenu with menuItems childrens when the icon is clicked. Even if the browser says it's a warning MUI will malfunction if the plugin is not in scope.
If
ReactTapEventPlugin(js.undefined)
is not provided in the JsApp body the browser's console throws the following warning:Just putting it in the JsApp solves the warning, just like this:
The text was updated successfully, but these errors were encountered: