modal submission not triggering listener
i have made a modal submit listener. but for only one of my modals it just refuses to trigger the listener and causes an error. anybody know why this might happen
Solution:Jump to solution
i figured it out. it was because my parser defaulted to returning this.none(). which im guessing is telling the client that the modal is invalid. This could've been documented a bit better.
2 Replies
Solution
i figured it out. it was because my parser defaulted to returning this.none(). which im guessing is telling the client that the modal is invalid. This could've been documented a bit better.
None tells the process that the handler should not be ran. Because there is no way that we can strictly bind handlers to specific actions without going through all of them, we need the end-user to provide that through the parse method