fix(ui): simplify control transition guard (#2171)
This commit is contained in:
@@ -13,6 +13,7 @@ import { TranslocoPipe, translateSignal } from '@jsverse/transloco';
|
||||
import { LucideCheck, LucideChevronDown, LucideLoaderCircle, LucideSearch, LucideX } from '@lucide/angular';
|
||||
|
||||
import { cn } from '../cn';
|
||||
import { AppControlTransitionDirective } from '../control.styles';
|
||||
import { AppSelectBaseDirective } from './app-select-base.directive';
|
||||
import { type SelectOption } from './app-select.options';
|
||||
|
||||
@@ -28,6 +29,7 @@ import { type SelectOption } from './app-select.options';
|
||||
Listbox,
|
||||
Option,
|
||||
TranslocoPipe,
|
||||
AppControlTransitionDirective,
|
||||
LucideCheck,
|
||||
LucideChevronDown,
|
||||
LucideLoaderCircle,
|
||||
@@ -39,6 +41,7 @@ import { type SelectOption } from './app-select.options';
|
||||
template: `
|
||||
<div ngCombobox #cb="ngCombobox" [readonly]="true" [disabled]="disabled()" class="relative block h-full w-full">
|
||||
<div
|
||||
appControlTransition
|
||||
#origin
|
||||
[class]="triggerClass()"
|
||||
[attr.data-expanded]="cb.expanded() ? 'true' : null">
|
||||
|
||||
Reference in New Issue
Block a user