primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Menubar no long supports MenuItem title. Component: MenuBar

Open aladdinhussein opened this issue 1 year ago • 3 comments

Describe the bug

In an older versions of Menubar, the menu item title will get displayed as a tooltip, but currently the menu item title is completely ignored and I don't see any other ways to display tooltips.

Environment

Angular App

Reproducer

No response

Angular version

17.0.8

PrimeNG version

17.2.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20

Browser(s)

Chrome

Steps to reproduce the behavior

Assign the MenuItem title a value and then add that menuitem to a menubar. When you hover over the menuitem, a tooltip should be displayed.

Expected behavior

tooltip should be displayed

aladdinhussein avatar May 03 '24 14:05 aladdinhussein

As far as I can see this in the source, title is no longer respected. You have to use tooltipOptions for displaying a tooltip.

mkoestner avatar May 14 '24 07:05 mkoestner

As far as I can see this in the source, title is no longer respected. You have to use tooltipOptions for displaying a tooltip.

Correct, the source code references the TooltipOptions only, but I couldn't get that to work either.

aladdinhussein avatar May 14 '24 13:05 aladdinhussein

Worked for me with 17.15.0 and the following: tooltipOptions: { tooltipLabel: 'this is my tooltip' }

mkoestner avatar May 15 '24 06:05 mkoestner