Extend sap.m.MenuButton
OpenUI5 version: all
Browser/version (+device/version): independend
URL (minimal example if possible):
Steps to reproduce the problem:
- Extend sap.m.MenuButton as myMenuButton
- add a CustomProperty (e.g. myProperty)
- use myMenuButton
- when method "setButtonMode" is called an exception is thrown as the custom property is forwared to the SplitButton and causes an error, as the custom property is not a member of aNoneForwardableProps as the array is outside the MenuButton class it can not manipulated.
What is the expected result? adding custom properties without side effect
What happens instead? Exception: Uncaught Error: Property "myProperty" does not exist in Element sap.m.SplitButton#__xmlview0--id122MenuButton-internalSplitBtn
Any other information? (attach screenshot if possible)
Hello @lhendrik,
Thank you for sharing this finding. I've created an internal incident 2180148059. The status of the issue will be updated here in GitHub.
Best Regards
Hello @lhendrik ,
The issue is fixed and will be part of version 1.91.
Best Regards, Nikolay Hristov
Hello,
thanks for fixing this issue and also adding a test.
Best regards, lhendrik