Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

$store is undefined inside OfficeLayer #34

@super2ni

Description

@super2ni

Describe the bug
I tried to create my own Modal component using OfficeLayer. It seems that Vuex $store is not "pushed" to the components inside OfficeLayer slot.

To Reproduce

  1. Use the OfficeLayer component like this for example:
<template>
  <OfficeLayer>
      <div class="Modal-content">
        <div class="Modal-header">
          <template v-if="title">{{title}}</template>
          <button @click="$emit('closeModal')" class="Modal-close">Fermer</button>
        </div>
        <SaveAttachments/>
      </div>
  </OfficeLayer>
</template>
  1. Inside the child component of OfficeLayer ("SaveAttachments" in above case), try to access $store.
  2. $store is undefined

Expected behavior
$store in child component should be accessible.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions