core icon indicating copy to clipboard operation
core copied to clipboard

bug in the CorePhone input component

Open priyanshu2k3 opened this issue 1 year ago • 0 comments

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 avatar Nov 05 '24 12:11 priyanshu2k3