mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
25 stars 25 forks source link

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

Open GCHQ-Developer-530 opened 3 months ago

GCHQ-Developer-530 commented 3 months ago

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-299 commented 1 month ago

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?