0

I'm building an application using React and I'm using bs-stepper for some of my forms. Is there a way to remove the listener that bs-stepper created from one of my components?

For example, if I render my custom component <Wizard /> (this is where bs-stepper is used) can I delete it after my component rendered?

This is a screenshot of the listener I want to remove.

Screenshot of the listener

Thanks in advance.

leandronn
  • 173
  • 1
  • 17
  • 1
    There's no way to remove a listener without having a reference to the original callback, but you could do something similar to [this](https://stackoverflow.com/questions/9251837/how-to-remove-all-listeners-in-an-element) and clone the React node. – kelsny Sep 21 '22 at 20:43

0 Answers0