Fixes a bug with multidropdown

When showing the dropdown in a multidropdown by clicking the button
rather than the values, the dropdown immediately disappeared.

Also fixed some linting problems while I was here.