-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Autocomplete, KeyboardDatePicker] HTML reset
doesn't work for Autocomplete
and KeyboardDatePicker
.
#19037
Comments
reset
doesn't work for Autocomplete
and KeyboardDatePicker
.
reset
doesn't work for Autocomplete
and KeyboardDatePicker
. reset
doesn't work for Autocomplete
and KeyboardDatePicker
.
@collegeimprovements It's doesn't seem to be supported by React: https://codesandbox.io/s/recursing-ptolemy-zk41d. import * as React from "react";
import { render } from "react-dom";
function App() {
const [value, setValue] = React.useState("");
const handleChange = event => {
setValue(event.target.value);
};
return (
<form className="App" onSubmit={e => alert("hi")}>
<input type="text" />
<input type="text" value={value} onChange={handleChange} />
<input type="submit" />
<input type="reset" />
</form>
);
}
const rootElement = document.getElementById("root");
render(<App />, rootElement); @bluebill1049 Any tip on this problem? BTW how is the integration with Material-UI going? :) Did #18269 (comment) help? |
Hey, @collegeimprovements, native form Hello @oliviertassinari :) Happy New Year 2020 鉂わ笍wish you have another successful year with MUI. I think |
@bluebill1049 Awesome, I wish you the best ! |
Current Behavior 馃槸
KeyboardDatePicker
andAutocomplete
doesn't respectreset
.Expected Behavior 馃
KeyboardDatePicker
andAutocomplete
's value should get reset when one clicks onreset
.Steps to Reproduce 馃暪
Link: https://codesandbox.io/s/relaxed-northcutt-ksy8o
Click on
reset
and see that onlyTextField
's value is getting reset.The text was updated successfully, but these errors were encountered: