Added allowClear parameter to component