Skip to content

[Bug]: when Tabs are initialized multiple times with the callback onShow is gone #645

Description

@wuda-io

Before submitting...

Context

Bug when initializing Tabs multiple times.

Current Behavior

Creating a Tab component and initialize with a callback for onShow.
Then use AutoInit again, and the callback handler does not work anymore.

Expected behavior

the callback should not be removed when it was previously added.

Possible Solutions or Causes

check if there was a callback added and do not change it.

Steps to reproduce

No response

Your Environment

  • Version used: 2.2.1
  • Browser Name and version: vivaldi
  • Operating System and version (desktop or mobile): MacOS
  • Additional information you want to tell us:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions