Create part from info provider: removing IP leaves tooltip enabled
Describe the bug As the title says, screenshots provided.
To Reproduce Steps to reproduce the behavior:
- Go to the create part from info provider page
- Click on the x to delete one IP from the list
- Tooltip stays on
Expected behavior The tooltip disappears.
Screenshots
Hovering the x and clicking it:
Tooltip still there after click:
Server Side
- Part-DB Version: latest release-1 and current dev
Desktop (please complete the following information): Tried on Vivaldi (chrome based) and firefox both up to date on windows or linux.
the tooltip does disappears if it is from a provider added after page load (like not in the default selection), only the ones present on page load have that issue
and putting https://github.com/Part-DB/Part-DB-server/blob/master/assets/js/register_events.js#L88-L89 in a setTimeout of one second seems to fix it.
I guess there is a race condition when this is called because of default providers vs the ones registered after full dom load.