openModal checks for onClose instead of onOpen callback

Hey,

I found a small issue with the openModal binding. It checks for onClose definition instead of onOpen.