Skip to content

bug in the CorePhone input component #419

@priyanshu2k3

Description

@priyanshu2k3

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 = [];

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions