Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Upon tab reapearing selection is not taken into account #1777

Description

@YonatanKra

First of all, I never mentioned how I LOVE this angular-material project.
Here's the codepen example:
http://codepen.io/yccteam/pen/GgGbzO
The issue is this:

  1. Tabs are created and work fine.
  2. When I click on "Change IF" the tabs are supposed to disappear due to ng-if - works great.
    The problem is:
  3. When "Change IF" is clicked again, the `ng-ifis satisfied and shows the tabs again. butmd-select`` isn't taken into account once the tabs reappear.

I've also added the "ng-show" for sports (just click "Change SHOW" to play with it).
It works, but now I need to take care of the md-bar, which is external to the tab itself.

I currently sove this using a hack with a watcher that sorts things out, but using a watcher while I already have a watcher (ng-if) seems very... hackish...

Is this behavior intentional? Any way to solve this within the API?

Added later:
I've added another functionality that recreates a bug in the tabs:

  1. Click on the "Change SHOW" in order to make the tabs to disappear.
  2. Then click on the "Change Tab" until the tab index changes (the number below the button)
  3. Click on "Change SHOW" in order to make the tabs reappear.
  4. Note the tabs appear wrong

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions