Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding [dt] on Select component has no effect #17540

Open
WillooWisp opened this issue Jan 30, 2025 · 0 comments
Open

Binding [dt] on Select component has no effect #17540

WillooWisp opened this issue Jan 30, 2025 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@WillooWisp
Copy link

WillooWisp commented Jan 30, 2025

<p-select
    appendTo="body"
    [options]="cars"
    [(ngModel)]="selectedCar"
    (onChange)="onCarChange($event.value)"
    optionLabel="label"
    [dt]="noSelectFocus()"
/>

public noSelectFocus = signal({
    root: {
        background: 'green',
        filledBackground: 'green',
        filledHoverBackground: 'green',
        filledFocusBackground: 'green',
        borderColor: 'transparent',
        hoverBorderColor: 'green',
        focusBorderColor: 'green',
        color: 'green',
        shadow: 'none',
        paddingX: 0,
        paddingY: 0
    },
    option: {
        focusBackground: 'green',
        selectedBackground: 'green',
        selectedFocusBackground: 'green',
        color: 'green',
        focusColor: 'green',
        selectedColor: 'green',
        selectedFocusColor: 'green',
    },
});
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant