Fixed bug: default click event hadn't been prevented on trigger of closing modal