openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Extend sap.m.MenuButton

Open lhendrik opened this issue 5 years ago • 3 comments

OpenUI5 version: all

Browser/version (+device/version): independend

URL (minimal example if possible):

Steps to reproduce the problem:

  1. Extend sap.m.MenuButton as myMenuButton
  2. add a CustomProperty (e.g. myProperty)
  3. use myMenuButton
  4. 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)

lhendrik avatar May 11 '21 12:05 lhendrik

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

JumpNRun avatar May 12 '21 10:05 JumpNRun

Hello @lhendrik ,

The issue is fixed and will be part of version 1.91.

Best Regards, Nikolay Hristov

NHristov-sap avatar May 27 '21 14:05 NHristov-sap

Hello,

thanks for fixing this issue and also adding a test.

Best regards, lhendrik

lhendrik avatar May 31 '21 07:05 lhendrik