Fixed 'noinput' selection bugs.Added 'erase' button disable/enable. Refactored setSelect() and setSelectedValue.