Prevent to show immediately after hide event

If element is clicked while opened calendar, it will hide and open again. For fixing this, preventShow is added.