Skip to content

Portal changes scopeId for some elements #318

Open
@danieltamas

Description

Portal version: 2.1.7
Nuxt version: 2.14.6

When portaling, for some reason the process changes the scopeId for some of the teleported elements.

Expected result:

<div data-v-1a9bb128="" id="header-content">
  <div data-v-1a9bb128="" id="left">
     <a data-v-1a9bb128="" href="/" class="logo-icon nuxt-link-active"></a>
  </div>
  <div data-v-1a9bb128="" id="right">
     <button data-v-1a9bb128="" id="friends" class="button-header"></button> 
     <button data-v-1a9bb128="" id="settings" class="button-header"></button> 
     <button data-v-1a9bb128="" id="logout" class="button-header"></button>
  </div>
</div>

Instead I'm getting this:

<div data-v-1a9bb128="" id="header-content">
   <div data-v-1a9bb128="" id="left">
      <a data-v-1a9bb128="" href="/" class="logo-icon nuxt-link-active"></a>
  </div>
  <div data-v-1a9bb128="" id="right">
     <button data-v-1a9bb128="" id="friends" class="button-header"></button> 
     <button data-v-56a57272="" id="settings" class="button-header"></button> 
     <button data-v-56a57272="" id="logout" class="button-header"></button>
  ></div>
</div>

The last 2 buttons in the #right div are getting a different scopeId for some reason:
data-v-56a57272

What is the cause of this and what's the fix?
If I leave a single element in the #right div, there's no problem. The moment I start adding,
I get this.

Thanks

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions