Skip to content

Commit

Permalink
set data variable equal to
Browse files Browse the repository at this point in the history
  • Loading branch information
dylansyoung committed Aug 31, 2023
1 parent c77aa43 commit ab6a642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/inputnumber/inputnumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ab6a642

Please sign in to comment.