Skip to content

md-tab: iframe reloads on tab focus #5239

@anupvarma

Description

@anupvarma

Bug, feature request, or proposal:

Bug

What is the expected behavior?

iframe content shouldn't be reloaded every time the tab is on focus.

What is the current behavior?

iframe embedded with tab causes the iframe to reload as and when user keeps switching between the tabs.

What are the steps to reproduce?

Step 1: Create 2 tabs with having iframe in 1st tab.
Step 2: Keep the iframe src to some external page (for data entry purpose).
Step 3: Fill some fields in tab 1 frame.
Step 4: Toggling tabs will reload iframe everytime.

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/DADYadzGOFI5GqkkITkA?p=preview

What is the use-case or motivation for changing an existing behavior?

It's a bug, the existing behavior is unintended

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: 4.2.2
Material: 2.0.0-beta.6

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions