We need to enhance the tooltip component by adding a close strategy feature. This feature will allow the tooltip to be closed when clicking inside it or not, based on the user's preference.
Current Behavior:
The tooltip can be toggled by clicking the associated element.
There is no option to specify a close strategy, making it inflexible for different use cases.
Desired Behavior:
Add an option to set a close strategy for the tooltip.
The close strategy should allow:
Closing the tooltip when clicking inside it.
Keeping the tooltip open when clicking inside it.
Expected Behavior:
The tooltip should close or stay open based on the specified close strategy.
Suggested Solution:
Add a configuration option to the tooltip component to specify the close strategy.
Implement logic to handle the closing of the tooltip based on the chosen strategy.
Description:
We need to enhance the tooltip component by adding a close strategy feature. This feature will allow the tooltip to be closed when clicking inside it or not, based on the user's preference.
Current Behavior:
Desired Behavior:
Expected Behavior:
Suggested Solution: