Closed mengmeng0813 closed 1 month ago
Hello @mengmeng0813 ,
Thank you for sharing this finding. I've created an internal incident DINC0173519. The status of the issue will be updated here in GitHub.
Regards, Niya
Hi,
In your case you can get the correct cursor position with the following code:
function onSuggest(event) {
setTimeout(function () {
console.error(event.oSource.getFocusInfo());
}, 0);
}
Best, Teo
OpenUI5 version: all
Browser/version (+device/version): Google Chrome: Version 125.0.6422.113 (Official Build) (x86_64)
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible): https://sapui5.hana.ondemand.com/#/entity/sap.m.SearchField/sample/sap.m.sample.SearchFieldSuggestions/code
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:
What is the expected result? No mater where I focus in searchField, the cursor position should be right.
What happens instead? Most of the time, it returns an error cursor position
Any other information? (attach screenshot if possible)