Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

209
Views
placeholder is not working in mui phone number in react

I am creating a mui phone number .but initial if you not provide any value in phone number then placeholder should shown but if you type any value then this placeholder should hide, how to create this place holder

import React from "react";
import MuiPhoneNumber from "material-ui-phone-number";
export default function App() {
  const [fields, setFields] = React.useState([{ value: null }]);
  function handleChange(i, event) {
    if (event) {
      let values = [...fields];
      values[i].value = event;
      setFields((v) => values);
    }
  }
  return (
    <>
      {fields.map((fields, idx) => (
        <MuiPhoneNumber
          defaultCountry={"us"}
          placeholder="Entre phone number"
          onChange={(e) => handleChange(idx, e)}
        />
      ))}
    </>
  );
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!