This is part of a bug report for Element Plus. The issue is that the first item in the select box is not selected by default when the dropdown is opened using the arrow down key. This works in version 2.3.12 but not in version 2.8.2.
To see the implementation of the select box, check the src/App.vue
file.
In there the first element is selected using el-select's navigateOptions('next')
function.
To see the working example, check the following repository: Element Plus Issue Working Example #18239.
Bug report: Element Plus Issue #18239
- Clone this repository.
- Run
npm install
to install the dependencies. - Run
npm run dev
to start the development server. - Open your browser and navigate to the URL shown in the terminal.
- Use the tab key to navigate to the select box.
- Press the arrow down key to open the dropdown.
- Now you see that the first item is NOT selected by default.