Skip to content

Links only work with string arguments #27

Description

@stevej2608

The following works:

link('Users', to='/users')

When I replace 'Users' with a html composite, eg:

button = html.button({'class_name': '...'},
            icon(),
            html.span({'class_name': ...'}, 'Users')
        )

link(button, to='/users')

The button composite is rendered as an empty <div></div>. The button composite renders correctly outside the link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions