Skip to content

Commit

Permalink
Merge pull request rancher#11762 from rak-phillip/bugfix/11683-namesp…
Browse files Browse the repository at this point in the history
…ace-filter

Prevent mousedown event from triggering focus in NamespaceFilter.vue
  • Loading branch information
rak-phillip authored Sep 11, 2024
2 parents 1b7cd34 + 84ad4dd commit ced7137
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/po/components/namespace-filter.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class NamespaceFilterPo extends ComponentPo {
}

toggle() {
return this.self().click({ force: true });
return this.namespaceDropdown().click({ force: true });
}

getOptions(): Cypress.Chainable {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/tests/pages/explorer2/namespace-picker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe('Namespace picker', { testIsolation: 'off' }, () => {
});

beforeEach('set up', () => {
HomePagePo.goTo();
ClusterDashboardPagePo.navTo();

// reset namespace picker to default state
Expand Down
1 change: 1 addition & 0 deletions shell/components/nav/NamespaceFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ export default {
class="ns-filter"
data-testid="namespaces-filter"
tabindex="0"
@mousedown.prevent
@focus="open()"
>
<div
Expand Down

0 comments on commit ced7137

Please sign in to comment.