openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.Dialog: setCustomHeader & setSubHeader Don't Return `this` Reference

Open boghyon opened this issue 8 years ago • 2 comments

API Reference says setCustomHeader as well as setSubHeader return ...

Reference to this in 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.

boghyon avatar Dec 03 '17 22:12 boghyon

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

awui avatar Dec 06 '17 09:12 awui

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

SvetoslavSpasov avatar Dec 19 '17 06:12 SvetoslavSpasov