My friend Red had a problem with his code.
He was working on integrating a popover onto an application that used a home-brewed variant of Redux Form. This version came with a few extra features to [attempt to] make itself easier to use and reduce development time.
I’ll try to describe the problem in the easiest way possible:
- The popover was to be summoned by clicking a button inside the form.
- Upon clicking the button, the popover indeed showed up (so good so far.)
- The submit event for the form was triggered at the same time.
By the time I found him, he was proposing to catch the source of the event and use it to filter which buttons were allowed to initiate it. He also tried to scout the entire source code for Redux Form and the plugin built on top of it.
I suggested he change his trigger from a button to an anchor. The code was working 2 minutes later.Continue Reading "Coding outside the box."