ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

[ic-tooltip] disableHover prop won't update once it's been set

Open GCHQ-Developer-530 opened this issue 1 year ago • 1 comments

Summary of the bug

If you try to update disableHover prop on tooltip after it's loaded, then nothing changes and the original disableHover value is used.

🪜 How to reproduce

Tell us the steps to reproduce the problem:

  1. Go to tooltip playground (should be done in #1970 work)
  2. Toggle disable hover
  3. See the error

🧐 Expected behaviour

Should be able to toggle the method for utilising a tooltip.

GCHQ-Developer-530 avatar Jun 13 '24 11:06 GCHQ-Developer-530

One dev suggests this might be a Storybook thing, where we need to keep the storybook arg in sync with the value in the component (using the updateArgs method?) Check if this bug still happens outside storybook, stackblitz?

GCHQ-Developer-299 avatar Aug 08 '24 08:08 GCHQ-Developer-299

This does seem to be an issue with the component. There will need to be a watch added on the disableHover Prop which then removes\adds the appropriate events that trigger the visibility of the tooltip

ad9242 avatar May 12 '25 14:05 ad9242