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

ContextMenu: escape: true is not working #13769

Closed
benjamindobravec opened this issue Sep 28, 2023 · 3 comments
Closed

ContextMenu: escape: true is not working #13769

benjamindobravec opened this issue Sep 28, 2023 · 3 comments
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team

Comments

@benjamindobravec
Copy link

Describe the bug

ContextMenu: escape: true is not working

MenuItem has escape property to allow html, which is not working in ContextMenu.

Environment

Angular: 16.2.7
PrimeNg: 16.4.1

Reproducer

No response

Angular version

16.2.7

PrimeNG version

16.4.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.17.1

Browser(s)

Chrome 117

Steps to reproduce the behavior

No response

Expected behavior

No response

@benjamindobravec benjamindobravec added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 28, 2023
@cetincakiroglu
Copy link
Contributor

@cetincakiroglu cetincakiroglu added Resolution: Cannot Replicate Issue could not be replicated by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 28, 2023
@github-actions
Copy link

We're unable to replicate your issue, if you are able to create a reproducer by using PrimeNG Issue Template or add details please edit this issue. This issue will be closed if no activities in 20 days.

@benjamindobravec
Copy link
Author

Hi,

It works, here is the example https://stackblitz.com/edit/vczjvv?file=src%2Fapp%2Fdemo%2Fcontext-menu-basic-demo.ts

I'm trying to add SVG icon to ContextMenu and icon is not showing:

MenuItem with SVG icon:
{ label: '<span class="icon p-menuitem-icon"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M480.091-336.924q67.985 0 115.485-47.59 47.5-47.591 47.5-115.577 0-67.985-47.59-115.485-47.591-47.5-115.577-47.5-67.985 0-115.485 47.59-47.5 47.591-47.5 115.577 0 67.985 47.59 115.485 47.591 47.5 115.577 47.5ZM480-392q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm.055 171.999q-137.977 0-251.439-76.115Q115.155-372.231 61.54-500q53.615-127.769 167.022-203.884 113.406-76.115 251.383-76.115t251.439 76.115Q844.845-627.769 898.46-500q-53.615 127.769-167.022 203.884-113.406 76.115-251.383 76.115Z"></path></svg></span><h1>File</h1>', escape: false, ... }
This MenuItem is working only on Menu component and not on ContextMen componentu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team
Projects
None yet
Development

No branches or pull requests

2 participants