[Fix #4732] Add required to menu item type

Fix for #4732 . Add required attribute