Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a similar money input? #807

Open
Nazar-D-Aleannlab opened this issue Oct 20, 2023 · 0 comments
Open

How to create a similar money input? #807

Nazar-D-Aleannlab opened this issue Oct 20, 2023 · 0 comments

Comments

@Nazar-D-Aleannlab
Copy link

Nazar-D-Aleannlab commented Oct 20, 2023

Describe the issue and the actual behavior

This is my actual code that I'm using now and after I put the cursor at the end I can't enter anything, how can I get around it?

<NumericFormat
          prefix="$"
          value={formik.values.value || '00.00'}
          error={!!formik.errors.value}
          onValueChange={handleChange}
          valueIsNumericString={true}
          wrapperInput={styles.numberFormat}
          decimalScale={2}
          fixedDecimalScale={true}
          disabled={!isCustomAmount}
          allowLeadingZeros={true}
          isAllowed={({ floatValue }) => {
            return (
              floatValue === undefined || +floatValue < MAX_LIMIT_PAYMENT_PLAN
            );
          }}
          classes={{
            root: clsx(styles.inputPaymentPlan, {
              [styles.statementAmount]: !isCustomAmount,
            }),
            input: styles.inputSum,
            underline: styles.underlineHide,
          }}
          variant="standard"
          customInput={CustomInput}
        />

Describe the expected behavior

I expect that after the course is set at the end it will be possible to enter the amount

Provide a CodeSandbox link illustrating the

Screen.Recording.2023-10-20.at.18.18.17.mov

issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant