code: function clearValue() {
        clearSelectedItem();
        setInputClearButton();
        if (self.parentForm && self.parentForm !== null) {
          self.parentForm.$setDirty();
        }
      }
docs: clear the input text field using clear button Check clear button visble and hidden