jQuery UI Widgets Forums Navigation Tabs Delete, Add, Then Select does not work

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 2 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • klh717
    Participant

    I have a case where I’m dynamically loading tabs on a page. The issue I have is trying to clear the previous tabs to recreate the new ones. When I do this, the select method does not work. Please see the following Fiddle, click the button and you can see that the last tab is selected, not the first one. Is there a work around? I originally tried to destroy the tab and make a new one but that doesn’t seem to work the same way as other objects.

    This appears to only be a problem if an item is deleted prior to the add.

    http://jsfiddle.net/zyp0ysg1/1/

    Thank you,

    Kris


    Hristo
    Participant

    Hello Kris,

    The mentioned scenario happens very fast and I would like to suggest you using setTimeout to select the first tab.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.