Skip to content

Commit

Permalink
fixed input oriantation of numeric Virtual Keypad for number #1011
Browse files Browse the repository at this point in the history
  • Loading branch information
unocelli committed Dec 17, 2023
1 parent bbeb4b9 commit a0d24cb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,17 @@ export class NgxTouchKeyboardComponent {
return;
}

const commonParams: [number, number, boolean] = [
let commonParams: [number, number, boolean] = [
this._caretPosition || 0,
this._caretPositionEnd || 0,
true,
];

let output = this._activeInputElement?.value || '';
if (this._caretPosition === null && this._caretPositionEnd === null) {
commonParams[0] = this._activeInputElement?.inputMode === 'decimal' ? output.length : 0;
commonParams[1] = this._activeInputElement?.inputMode === 'decimal' ? output.length : 0;
}

if (!this.isStandardButton(button)) {
// Handel functional button
Expand Down

0 comments on commit a0d24cb

Please sign in to comment.