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

bug in the CorePhone input component #419

Open
priyanshu2k3 opened this issue Nov 5, 2024 · 0 comments
Open

bug in the CorePhone input component #419

priyanshu2k3 opened this issue Nov 5, 2024 · 0 comments
Assignees

Comments

@priyanshu2k3
Copy link
Contributor

priyanshu2k3 commented Nov 5, 2024

Describe the bug

A clear and concise description of what the bug is.
bug in the CorePhone input component
enter the number above 15 digiti and it gets transformed to the scientific value

Proposed solution
//copy the belo code and paste it in the corePhone

// eslint-disable-next-line unused-imports/no-unused-imports, no-unused-vars
import React from "react";

import CoreInput from "./CoreInput";
import { sanitizeComponentProps } from "../../utils/componentUtil";
import { number } from "yup";

export default function CorePhone(props) {
props = sanitizeComponentProps(CorePhone, props);
return <CoreInput {...props} tyope = "text"
inputProps={{
inputMode: 'numeric',
pattern: "[0-9]*",
min: 1,
// step: 1,
max: 999999999999,
}}
/>;
}
CorePhone.validProps = [...CoreInput.validProps];
CorePhone.invalidProps = [];

@priyanshu2k3 priyanshu2k3 self-assigned this Nov 5, 2024
priyanshu2k3 added a commit that referenced this issue Nov 5, 2024
fixes the issue of number input

ref: #419
priyanshu2k3 added a commit that referenced this issue Nov 6, 2024
lintin error is fixed

ref: #419
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