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

ngx-color-picker module close when change color #368

Open
yashChapaniOB opened this issue Nov 7, 2024 · 0 comments
Open

ngx-color-picker module close when change color #368

yashChapaniOB opened this issue Nov 7, 2024 · 0 comments

Comments

@yashChapaniOB
Copy link

I have used ngx-color-picker module in the angular mat-menu content but issue is when open color-picker module and change color, then why is the color-picker module closed I have checked and issue is for the angular mat-menu , How to resolved this becuase i need color-picker module in the mat-menu section

<mat-menu #gradientPopup="matMenu" yPosition="above" xPosition="before" [overlapTrigger]="false" class="text-gradient-popup">
 <div (click)="$event.stopPropagation();" id="cnvs_grd_menu">
  <div class="gredient-spead-items d-flex justify-content-between align-items-center my-2 txt-geadient-clr-picker h-55 position-relative"
                      *ngFor="let clr of gradientArray; let i = index; trackBy: trackBgGradient">
                      <div type="text" class="form-control color-input pull-right custom-picker" [cpPosition]="'bottom'"
                        [cpOutputFormat]="'hex'" [(colorPicker)]="clr.color" id="{{'grd_clr'+i}}"
                        [style.background]="clr.color" (cpSliderDragEnd)="changeGradientColor(clr.color,i)" (cpInputChange)="changeGradientColor(clr.color,i)" 
                        [cpIgnoredElements]="['.mat-menu-content']"></div>
    </div>
 </div>
</mat-menu>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant