Skip to content

VDropdown component errors using Browser installation: TypeError: can't access property "offset", m is undefinedΒ #1089

@MattyRad

Description

@MattyRad

Going off of the Browser installation: https://floating-vue.starpad.dev/guide/installation#browser

Minimum reproducible example:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <script src="https://unpkg.com/floating-vue@^2.0.0-beta.1"></script>
  <link rel="stylesheet" href="https://unpkg.com/floating-vue@^2.0.0-beta.1/dist/style.css" />
</head>
<body>
  <div id="app">
    <v-dropdown>
      <button>Click me</button>

      <template #popper>
        <p>This is the popper content</p>
      </template>
    </v-dropdown>
  </div>

  <script>
    const { createApp } = Vue;

    const app = createApp({});

    app.use(FloatingVue);

    app.mount('#app');
  </script>
</body>
</html>

Console reports an error when you click the button:

Uncaught (in promise) TypeError: can't access property "offset", m is undefined
    $_computePosition https://unpkg.com/floating-vue@^2.0.0-beta.1:1

Maybe I missed something πŸ€·β€β™‚οΈ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions