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

163
Views
Reset Chakra UI Editable Input when editing

I am using the chakra UI Editable component and set '-' as the default value if there is no value available. So, when editing input is visible as below. But I want to remove the '-' when editing.

enter image description here

Here is my code.

<Editable
 defaultValue={rate || '-'}
 submitOnBlur={false}
>
{(props) => (
  <>
    <EditablePreview/>
    <EditableInput
        onBlur={null}
    />
    <EditableControls
        {...props}
        id={no}
    />
  </>
)}

Sandbox: https://codesandbox.io/s/summer-sound-0wvcr?file=/src/App.js

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!