Skip to content

Smart Select "el" Parameter #4323

Description

@BastianW13

Framework7 version: 8.3.4
Platform and Target: Desktop Any Browser
Live Link or CodeSandbox: https://codesandbox.io/p/sandbox/jovial-wescoff-c2n56l?file=%2Fsrc%2FHome.tsx

Describe the bug

Using the "el" parameter in any form (CSS-Selector or HTMLElement) throws an error about reading properties of undefined.

To Reproduce

Just open the sandbox or try building a smart-select with smartSelectParams={{el: "#your-id"}}

Expected behavior

It should work

Actual Behavior

It doesn't

Additional context

No example in the documentation uses the "el" property (Not for smart-select and not for any of the others components that could in theory use the "el" property; e.g. Popup).

Could not find any discussion in the forum on this.

Not much to say about it. It just does not work, or i am on the completely wrong path about how i should use that parameter.

Usecase: All i want to do is to add an id to the smart-select-page, so that i can apply styles specifically to that part of my application. I need this behaviour to show legacy content without destroying the new designs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions