JSColor does not work in Modal dialog


I’m trying to implement the JSColor color picker in my app. It works fine in the main view. However, it doesn’t work inside a modal dialog. The color picker shows, but I can’t pick anything. For some reason, the mouse events aren’t firing for the generated DIV. What is Ionic Modal dialog doing that might be preventing the DIVs created by JSColor to listen to mouse events? Here’s a CodePen that illustrates the problem: