core: add condition when opts is undefined
core: add open() private function
core: hide input element using styles