Skip to content

The component is initialized inexplicably #2402

@Reinhard2019

Description

@Reinhard2019

Describe the bug

I have a Tooltip component, when clicked, it should show the content, but instead of showing the content, it reinitialized. My original code was quite complex, and I spent most of the day looking for specific bug causes. I ended up with a minimal example that could be reproduce this bug.

Your Example Website or App

https://playground.solidjs.com/anonymous/de1b3aef-e779-4949-bc37-9f7762549216

Steps to Reproduce the Bug or Issue

  1. go to https://playground.solidjs.com/anonymous/de1b3aef-e779-4949-bc37-9f7762549216
  2. click text

Expected behavior

Once the tooltip is clicked, the content should be displayed instead of reinitialized.

Screenshots or Videos

截屏2025-01-10 10 10 08

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions