Skip to content

Commit

Permalink
remove focus-trap directive + improve chaining event handler modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
aalves08 committed Jan 17, 2025
1 parent 8a19862 commit d1cd1f5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 32 deletions.
3 changes: 1 addition & 2 deletions shell/components/form/ColorInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ export default {
:class="{[mode]:mode, disabled: isDisabled}"
:data-testid="componentTestid + '-color-input'"
:tabindex="isDisabled ? -1 : 0"
@keyup.enter.stop="handleKeyups($event)"
@keyup.space.stop="handleKeyups($event)"
@keyup.enter.space.stop="handleKeyups($event)"
>
<label class="text-label"><t
v-if="labelKey"
Expand Down
28 changes: 0 additions & 28 deletions shell/directives/focus-trap.js

This file was deleted.

2 changes: 0 additions & 2 deletions shell/initialize/install-directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import cleanTooltipDirective from '@shell/directives/clean-tooltip';
import positiveIntNumberDirective from '@shell/directives/positive-int-number.js';
import trimWhitespaceDirective from '@shell/directives/trim-whitespace';
import intNumberDirective from '@shell/directives/int-number';
import focusTrap from '@shell/directives/focus-trap';

/**
* Prevent extensions from overriding existing directives
Expand Down Expand Up @@ -48,7 +47,6 @@ function addDirectives(vueApp) {
vueApp.directive('focus', focusDirective);
vueApp.directive('intNumber', intNumberDirective);
vueApp.directive('positiveIntNumber', positiveIntNumberDirective);
vueApp.directive('trap', focusTrap);
}

/**
Expand Down

0 comments on commit d1cd1f5

Please sign in to comment.