Skip to content

Angular1 | Tabbar issue: Uncaught TypeError: el._show is not a function #2307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
keijiodagawa opened this issue Jan 13, 2018 · 0 comments
Closed

Comments

@keijiodagawa
Copy link

Environment

When setting "ons-tabbar" on "ons-tab" page, the following error message will be displayed. (Onsen UI 2.6.0 or later)

Uncaught TypeError: el._show is not a function

[Core]
  onsenui latest
  
[Framework]
  angular1 1.5.8

[Framework binding]
 angular1-onsenui latest

[Platform]
  All

[Browser]
  All

Encountered problem

How to reproduce

Demo link

  • HTML
<ons-page ng-controller="AppController as app">
  <ons-toolbar>
    <div class="center">My App</div>
  </ons-toolbar>

  <ons-tabbar position="auto">
    <ons-tab page="page1.html" label="Page 1" icon="square" active></ons-tab>
    <ons-tab page="page2.html" label="Page 2" icon="square"></ons-tab>
  </ons-tabbar>
</ons-page>

<ons-template id="page1.html">
  <ons-page>
    <div class="content" style="text-align: center">
      <ons-tabbar position="top">
        <ons-tab page="page1-1.html" label="Page 1-1" icon="square" active></ons-tab>
        <ons-tab page="page2-1.html" label="Page 2-1" icon="square"></ons-tab>
      </ons-tabbar>
    </div>
  </ons-page>
</ons-template>

<ons-template id="page2.html">
  <ons-page>
    <div class="content" style="text-align: center">
      <p>Page 2 content</p>
    </div>
  </ons-page>
</ons-template>

<ons-template id="page1-1.html">
  <ons-page>
    <div class="content" style="text-align: center">
      <p>page1-1 content</p>
    </div>
  </ons-page>
</ons-template>

<ons-template id="page2-1.html">
  <ons-page>
    <div class="content" style="text-align: center">
      <p>page2-1 content</p>
    </div>
  </ons-page>
</ons-template>
  • JS
ons.bootstrap()
  .controller('AppController', function() {
  });
@frandiox frandiox self-assigned this Jan 15, 2018
frandiox added a commit that referenced this issue Jan 15, 2018
fix(ons-tab): Tab reattach issue. Closes #2307.
@lock lock bot added the outdated label May 17, 2018
@lock lock bot unassigned frandiox May 17, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants