Skip to content

Commit 938e7ca

Browse files
1 parent fdfb96e commit 938e7ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/webapp/controller/App.controller.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ sap.ui.define("z2ui5/Focus", ["sap/ui/core/Control",], (Control) => {
125125
oControl.setProperty("setUpdate", false);
126126
setTimeout((oControl) => {
127127
var oElement = z2ui5.oView.byId(oControl.getProperty("focusId"));
128+
if (!oElement){
129+
return
130+
}
128131
var oFocus = oElement.getFocusInfo();
129132
oFocus.selectionStart = parseInt(oControl.getProperty("selectionStart"));
130133
oFocus.selectionEnd = parseInt(oControl.getProperty("selectionEnd"));

0 commit comments

Comments
 (0)