material-ui-pickers

How to edit the the time picker of material-ui-time-picker?

蓝咒 提交于 2020-01-04 13:36:04
问题 I have a material-ui-time-picker and I want to control this input, it works well, but I want to edit the time input from the keyboard and not when I click the input on the clock. My code is : import React, { Component } from "react"; import { TimePicker } from "material-ui-time-picker"; import { Input as Time, Dialog as Clock } from "@material-ui/core"; openDialog = () => this.setState({ isOpen: true }); closeDialog = () => this.setState({ isOpen: false }); handleDialogTimeChange = newValue =

How to edit the the time picker of material-ui-time-picker?

拥有回忆 提交于 2020-01-04 13:35:56
问题 I have a material-ui-time-picker and I want to control this input, it works well, but I want to edit the time input from the keyboard and not when I click the input on the clock. My code is : import React, { Component } from "react"; import { TimePicker } from "material-ui-time-picker"; import { Input as Time, Dialog as Clock } from "@material-ui/core"; openDialog = () => this.setState({ isOpen: true }); closeDialog = () => this.setState({ isOpen: false }); handleDialogTimeChange = newValue =

Migration to Material-ui V4

回眸只為那壹抹淺笑 提交于 2019-12-11 05:04:08
问题 When I go to migrate material-ui from version 3.9.3 to version 4.3.2 in my React Application, I get an error like TypeError: styles_1.createGenerateClassName is not a function . I'm completely confused on how to migrate to Material UI V4. What are the necessary packages I need with the correct version? If any one has worked on this kind of scenario, please help me. Thanks. This is my package.json file: "dependencies": { "react": "^16.8.6", "react-dom": "^16.8.6", "@date-io/moment": "^1.3.1",

Uncaught TypeError: Object(…) is not a function when importing @material-ui/pickers

三世轮回 提交于 2019-12-10 17:28:44
问题 I am using "@material-ui/core": "^3.9.3" with "@material-ui/pickers": "^3.0.0-beta.1" When I import anything from @material-ui/pickers I get: Uncaught TypeError: Object(...) is not a function at Module../node_modules/@material-ui/pickers/dist/material-ui-pickers.esm.js (material-ui-pickers.esm.js:25) at __webpack_require__ (bootstrap:781) at fn (bootstrap:149) at Module../src/views/Event/Create.js (User.js:18) at __webpack_require__ (bootstrap:781) at fn (bootstrap:149) at Module../src/Routes