Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion core/src/components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ export class Input implements ComponentInterface {
* Used for patterns such as input trimming (removing whitespace),
* or input masking.
*/
this.nativeInput.value = this.getValue();
const { selectionStart, selectionEnd } = this.nativeInput;
this.nativeInput.value = this.getValue();
// TODO: FW-727 Remove this when we drop support for iOS 15.3
// Set the cursor position back to where it was before the value change
this.nativeInput.setSelectionRange(selectionStart, selectionEnd);
}
this.emitStyle();
this.ionChange.emit({ value: this.value == null ? this.value : this.value.toString() });
Expand Down