Skip to content

IllegalStateException in a tabview scenario with nested frames #6490

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

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