sap.m.Dialog: setCustomHeader & setSubHeader Don't Return `this` Reference
API Reference says setCustomHeader as well as setSubHeader return ...
Reference to
thisin order to allow method chaining
... like other generated mutators.
However, this is not true according to the source code: https://github.com/SAP/openui5/blob/16bfee8e61d45d19088aa549196f914dfcc9dceb/src/sap.m/src/sap/m/Dialog.js#L1493-L1498
https://github.com/SAP/openui5/blob/16bfee8e61d45d19088aa549196f914dfcc9dceb/src/sap.m/src/sap/m/Dialog.js#L1398-L1409
This breaks method chaining.
Hello @boghyon, Thank you for sharing this finding. I've created an internal incident 1780468158. The status of the issue will be updated here in GitHub. Regards, Wenqian
Hi @boghyon, thank you for your finding. The fix is available on the master branch and will also be down-ported to 1.52. Best Regards, Svetoslav