Skip to content

add id to placeholder container #18

@ghost

Description

Hi,

I have a project where some buttons scroll to divs placed down the website. If I put the id prop in the slot that is passed inside Lazy it will not exist when the button is clicked because rendering didn’t happen yet.

I propose to have a prop in Lazy for passing the id and apply it to the placeholder instead, in theory it should scroll to the placeholder position and render the content.

Shouldn’t be too difficult, I can make a PR let me know if this sounds ok.

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