update with preventClose option
Add an option to prevent closing the dropdown when preventClose option is set to true