mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
# Backport This will backport the following commits from `main` to `8.12`: - [Fix existing pipeline list keyboard accessibility (#172680)](https://github.com/elastic/kibana/pull/172680) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Mike Pellegrini","email":"mike.pellegrini@elastic.co"},"sourceCommit":{"committedDate":"2023-12-07T16:28:20Z","message":"Fix existing pipeline list keyboard accessibility (#172680)\n\n## Summary\r\n\r\nFix keyboard accessibility for the existing pipeline selection list","sha":"8937ce4c0d1eadb776f2996436e5d722eaca9a34","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.12.0","v8.13.0"],"number":172680,"url":"https://github.com/elastic/kibana/pull/172680","mergeCommit":{"message":"Fix existing pipeline list keyboard accessibility (#172680)\n\n## Summary\r\n\r\nFix keyboard accessibility for the existing pipeline selection list","sha":"8937ce4c0d1eadb776f2996436e5d722eaca9a34"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172680","number":172680,"mergeCommit":{"message":"Fix existing pipeline list keyboard accessibility (#172680)\n\n## Summary\r\n\r\nFix keyboard accessibility for the existing pipeline selection list","sha":"8937ce4c0d1eadb776f2996436e5d722eaca9a34"}}]}] BACKPORT--> Co-authored-by: Mike Pellegrini <mike.pellegrini@elastic.co>
This commit is contained in:
parent
3b9c879d6c
commit
598fc0e4b4
1 changed files with 0 additions and 9 deletions
|
@ -45,19 +45,10 @@ export const PipelineSelect: React.FC = () => {
|
|||
}
|
||||
};
|
||||
|
||||
const getActiveOptionIndex = (): number | undefined => {
|
||||
const index = existingInferencePipelines.findIndex(
|
||||
(pipelineOption) => pipelineOption.pipelineName === pipelineName
|
||||
);
|
||||
|
||||
return index >= 0 ? index : undefined;
|
||||
};
|
||||
|
||||
return (
|
||||
<EuiSelectable
|
||||
options={getPipelineOptions(existingInferencePipelines)}
|
||||
listProps={{
|
||||
activeOptionIndex: getActiveOptionIndex(),
|
||||
bordered: true,
|
||||
rowHeight: useIsWithinMaxBreakpoint('s') ? 120 : 90,
|
||||
showIcons: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue