Event.preventDefault() not working when I activate BB

I have a custom dynamic module on the page that has some buttons (<a> tags) with href="#tag_name".
to stop loading the URL from href on click I use Event.preventDefault(). It works fine until I activate the BB plugin. So the redirect to the URL happens.
Any tips on how I can fix that?

Not without seeing your code. preventDefault is a standard JS so no reason for it not to work