wr: chRowspanTable 수정
This commit is contained in:
@@ -190,12 +190,10 @@ export const chRowspanTable = (
|
||||
value={formatCommaNumber(value) || ""}
|
||||
disabled={!selectedIds.includes(row.chkgdnSn)}
|
||||
maxLength={numSize}
|
||||
onInput={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
if (
|
||||
head.type === "number" &&
|
||||
e.target.value.length > numSize
|
||||
) {
|
||||
e.target.value = e.target.value.slice(0, numSize);
|
||||
onInput={(e: React.FormEvent<HTMLInputElement>) => {
|
||||
const el = e.currentTarget;
|
||||
if (head.type === "number" && el.value.length > numSize) {
|
||||
el.value = el.value.slice(0, numSize);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
@@ -225,12 +223,10 @@ export const chRowspanTable = (
|
||||
value={value || ""}
|
||||
disabled={!selectedIds.includes(row.chkgdnSn)}
|
||||
maxLength={numSize}
|
||||
onInput={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
if (
|
||||
head.type === "number" &&
|
||||
e.target.value.length > numSize
|
||||
) {
|
||||
e.target.value = e.target.value.slice(0, numSize);
|
||||
onInput={(e: React.FormEvent<HTMLInputElement>) => {
|
||||
const el = e.currentTarget;
|
||||
if (head.type === "number" && el.value.length > numSize) {
|
||||
el.value = el.value.slice(0, numSize);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user