Skip to content

Commit ece2c6e

Browse files
committed
fix(core): clearFocus order fix to ensure keyboard is hidden
1 parent b8c5104 commit ece2c6e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/textfield/platforms/android/java/com/nativescript/material/textfield/TextInputEditText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ void dismissSoftInput() {
5050
}
5151

5252
public void fullClearFocus() {
53-
handleClearFocus(this);
5453
dismissSoftInput();
54+
handleClearFocus(this);
5555
}
5656

5757
public boolean dispatchKeyEventPreIme(KeyEvent event) {

packages/textview/platforms/android/java/com/nativescript/material/textview/TextViewInputEditText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ void dismissSoftInput() {
5050
}
5151

5252
public void fullClearFocus() {
53-
handleClearFocus(this);
5453
dismissSoftInput();
54+
handleClearFocus(this);
5555
}
5656

5757
public boolean dispatchKeyEventPreIme(KeyEvent event) {

src/core/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ export function overrideViewBase() {
278278
this.focus();
279279
}
280280
public clearFocus() {
281-
handleClearFocus(this.nativeViewProtected);
282281
ad.dismissSoftInput(this.nativeViewProtected);
282+
handleClearFocus(this.nativeViewProtected);
283283
}
284284

285285
getDefaultElevation(): number {

0 commit comments

Comments
 (0)