我在我的React应用程序中使用了Material-UI组件(例如DropDownMenu,RadioButtonGroup)。当我在webpack-dev-server下运行它时,组件呈现,但我无法与它们交互。
我正在injectTapEventPlugin()
作为recommended。
但是,如果我使用webpack构建应用程序,然后将其加载到浏览器中(尝试使用Chrome和Edge),一切都很好。我可以按预期与Material-UI组件进行交互。
我错过了什么吗?有某种修复方法吗? webpack-dev-server的热重载使我的生活更轻松。
答案 0 :(得分:0)
I got this working. Must have been something in my webpack configuration that was causing it.
I merged some settings from the Material UI example configuration file into my existing file and it starting working.
Not entirely sure what was causing it, but happy to have it fixed.