on 2024 Nov 26 10:50 AM
Before SAPUI5 upgrade:
// handle tap for active toolbar, do nothing if already handled
Toolbar.prototype.ontap = function(oEvent) {
if (this.getActive() && !oEvent.isMarked()) {
oEvent.setMarked();
this.firePress({
srcControl : oEvent.srcControl
});
}
};
After upgrade of SAPUI5:
y.prototype.ontap = function(t) {
if (this.getActive() && !t.isMarked() || t.srcControl === this._getActiveButton()) {
t.setMarked();
this.firePress({
srcControl: t.srcControl
});
this.focus() ==> problem with this line as the scroll moves to initial position to the top.
}
}
My code:
Request clarification before answering.
The issue should be fixed by now thanks to the change https://github.com/SAP/openui5/commit/6589001a928be6de9b00cfff69a92223c31fc044 which is available from UI5 1.127 so far. Make sure to upgrade to one of the maintained SAPUI5 versions that is 1.127 or higher.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.