I have created a UI select field using PHP, with the below code of lines.
$data = [ 'arguments' => [ 'data' => [ 'config' => [ 'label' => __('Options'), 'componentType' => Field::NAME, 'formElement' => Select::NAME, 'component' => 'Magento_Ui/js/form/element/ui-select', 'elementTmpl' => 'ui/grid/filters/elements/ui-select', 'selectType' => 'simple', 'selectType' => $this->getOptions(), 'dataType' => Text::NAME, 'sortOrder' => 10, 'disableLabel' => true, 'multiple' => false, 'selectedPlaceholders' => [ 'defaultPlaceholder' => __('None'), ], 'validation' => [ 'required-entry' => false ], 'source' => 'vendorfield', 'visible' => 1, 'required' => 0, 'filterOptions' => true ], ], ], ];
When the user selects one of the options from the Dropdown then that option will be selected.
Now if the user wants to unselect that option. I mean users don`t want to select any value from that dropdown. then what?
Currently, the user can`t unselect the selected value.😬
Thanks in advance :)