From ab6a64203e3b6bfbfd1c2fe2bf84b286f12dc3c2 Mon Sep 17 00:00:00 2001 From: Dylan Young <104391407+dylansyoung@users.noreply.github.com> Date: Thu, 31 Aug 2023 15:21:32 +0000 Subject: [PATCH] set data variable equal to --- src/app/components/inputnumber/inputnumber.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index 2ea31b0c4b3..1993257405b 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -936,7 +936,7 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control let data = (event.clipboardData || (this.document as any).defaultView['clipboardData']).getData('Text'); if (data) { if(this.maxlength) { - data.toString().substring(0, this.maxlength); + data = data.toString().substring(0, this.maxlength); } let filteredData = this.parseValue(data);