Skip to content

IllegalStateException in a tabview scenario with nested frames #6490

Closed

Description

@manoldonev
  1. Create app with root frame:
<Frame defaultPage="home/tab-page"></Frame>
  1. Default page of the frame should contain a navigation button to a different page and a tabview component whose tab items contain Frames:
<Page class="page"
    xmlns="http://schemas.nativescript.org/tns.xsd">

    <GridLayout rows="auto, *">
        <Button text="navigate to second page" tap="onTap" />
        <TabView androidTabsPosition="bottom" row="1">
            <TabViewItem title="Home">
                <Frame defaultPage="home/home-items-page"></Frame>
            </TabViewItem>

            <TabViewItem title="Browse">
                <Frame defaultPage="browse/browse-page"></Frame>
            </TabViewItem>
        </TabView>
    </GridLayout>
</Page>
  1. Navigate to second page (via the button) and navigate back to the tabview page (e.g. via hardware button, doesn't matter really)

The following exception occurs:

System.err: Calling js method finishUpdate failed
System.err:
System.err: Error: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

Activity

  1. self-assigned this
    on Nov 1, 2018
  2. ghost removed on Nov 5, 2018
  3. lock commented on Nov 5, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked and limited conversation to collaborators on Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions