fixed the bug that toggle disabled state for select does not work