Closed jorgegarba closed 1 year ago
Humm can you please share a sandbox plz ?
Hi @viclafouch I just created de SandBox
https://codesandbox.io/s/muitelinput-bug-allrequired-yy3iss?file=/src/App.tsx
It is causing the same error, and the code is as follows:
import "./styles.css";
import { MuiTelInput } from "mui-tel-input";
import { useState } from "react";
export default function App() {
const [phone, setPhone] = useState("");
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
<hr />
<MuiTelInput value={phone} onChange={() => {}} />
</div>
);
}
Everything is working for me, just don't forget to install @emotion/react
@emotion/styled
and @mui/material
.
Oh I see, so sorry for this false issue. I'm using MUI, but missing those libs. Thank you so much. Closing the issue
I just installed the library and using it in the same way as your documentation, the component gets annoyed requiring all optional attributes as follows:
I didn't make any change to the simple usage. Is there a possibility that you have a bug?
Thanks in advance