Skip to content

[Bug]: containerElement option for Account Center attaches full Onboard instance rather than just AC component #1311

@lnbc1QWFyb24

Description

@lnbc1QWFyb24

Current Behavior

When passing in an element query string for the containerElement option within the Account Center options, the whole Onboard UI is mounted to the element.

Expected Behavior

I would expect that just the Account Center component would mount to the element so there is greater control of where that component is rendered.

One use case is to be able to position just the Account Center component relative to another element on the page.

Steps To Reproduce

  1. Pass in containerElement option
  2. See that all of Onboard is rendered to the element that is passed in

What package is effected by this issue?

@web3-onboard/core

Is this a build or a runtime issue?

Runtime

Package Version

core: 2.8.3

Node Version

16.10.0

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Anything else?

No response

Sanity Check

  • If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions