Part-DB-server icon indicating copy to clipboard operation
Part-DB-server copied to clipboard

Create part from info provider: removing IP leaves tooltip enabled

Open rhaamo opened this issue 1 month ago • 2 comments

Describe the bug As the title says, screenshots provided.

To Reproduce Steps to reproduce the behavior:

  1. Go to the create part from info provider page
  2. Click on the x to delete one IP from the list
  3. Tooltip stays on

Expected behavior The tooltip disappears.

Screenshots Hovering the x and clicking it: Image

Tooltip still there after click: Image

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.

rhaamo avatar Dec 07 '25 22:12 rhaamo

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

rhaamo avatar Dec 07 '25 22:12 rhaamo

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.

rhaamo avatar Dec 07 '25 22:12 rhaamo