vikramlearning / blazorbootstrap

An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.
https://docs.blazorbootstrap.com/
Apache License 2.0
734 stars 38 forks source link

Button - id on Button is causing Unhandled error #194

Closed ervintuzlic closed 1 year ago

ervintuzlic commented 1 year ago

I was using BlazorBootstrap v1.3.0 and this problem wasn't occurring. After updating to v1.7.2 when id is added to Button it throws unhandled error when page is loaded.

This was also recreated on fresh project.

Example: image

Error thrown: image

gvreddy04 commented 1 year ago

@ervintuzlic Thanks for using BlazorBootstrap components. Will verify this?

gvreddy04 commented 1 year ago

@ervintuzlic Do you have any specific reason for adding custom id attribute to the button?

ervintuzlic commented 1 year ago

@gvreddy04 I've used it in combination with labels for some specific situation in my project. I just thought it would be useful as identifier is pretty common for button and that there were no issues with using id on v1.3.0