A disabled dropdown would still open when clicked when the container property is set

Now check if the dropdown is disabled or not before opening it.