Skip to content

My component dont work when packaged #64759

@WellingtonNico

Description

@WellingtonNico

Hello, I need some help, please!

this is my situation:

I created a very good autocomplete component for blazor that I wanna reuse, so i created a package for it:
https://github.com/WellingtonNico/AutoCompleteComponent/tree/nugget

things checked

the component worked pretty well before packaging, so there is no error in the code itself, it looks like some kind of config.
the .js and .css files were imported correctly in my tests, they were found in browser.

the actual problem

referencing the AutoCompleteComponent or even packaging it and importing locally was ok, I'm able to see the component, it even renders correctly, I need to click on the component to open the dropdown, and the click does not work, it does not even is triggered when debugging.
fun fact, if I just copy the entire code and paste inside the project that needs to use this autocomplete component it works just fine without any changes.

Is there a config or kind of permission to enable @OnClick to work from packaged blazor components or some config to do?

remember, just moving the folder from package to my test project made @OnClick function work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions