I am trying to highlight the text in a combobox so that I can highlight the text when a user clicks in the combo box.
Here is a sample of what I am trying to do:
<ComboBox
className='k-combobox'
placeholder='Select Center'
data={this.state.centerAccessFiltered }
textField="centerDisplayName"
value={this.state.selectedCenter}
filterable={true}
onFilterChange={this.filterChange}
onChange={(e) => this.changeCenter(e.target.value.centerID.toString())}
clearButton={false}
onFocus={this.handleFocus}
/>
handleFocus = (e) => {
e.target.element.select()
}
This works on the Input Control but not on the ComboBox. Is there a way to select the current text when as user clicks on the control?