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

Component: Attribute pReorderableRowHandle not working in span and i #14761

Closed
amrud opened this issue Feb 8, 2024 · 2 comments
Closed

Component: Attribute pReorderableRowHandle not working in span and i #14761

amrud opened this issue Feb 8, 2024 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@amrud
Copy link

amrud commented Feb 8, 2024

Describe the bug

Getting error when run unit test with the attribute pReorderableRowHandle

Error: NG0303: Can't bind to 'pReorderableRowHandle' since it isn't a known property of 'i' (used in the 'CustomComponent' component template).
1. If 'i' is an Angular component and it has the 'pReorderableRowHandle' input, then verify that it is a part of an @NgModule where this component is declared.
2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
error properties: Object({ code: 303 })
Error: NG0303: Can't bind to 'pReorderableRowHandle' since it isn't a known property of 'i' (used in the 'GridCellFormattingComponent' component template).
1. If 'i' is an Angular component and it has the 'pReorderableRowHandle' input, then verify that it is a part of an @NgModule where this component is declared.
2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

Environment

Windows

Reproducer

No response

Angular version

17.1.2

PrimeNG version

17.5.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11.0

Browser(s)

No response

Steps to reproduce the behavior

Run unit test, it will throw this error Can't bind to 'pReorderableRowHandle' since it isn't a known property of 'i'

Expected behavior

Should not throw error, and can be use within span and i

@amrud amrud added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 8, 2024
@natharduini
Copy link

natharduini commented Mar 25, 2024

I have the same issue.
As far as I can see from the source code, all the directive does is add a class to the element.
As a workaround in the meantime, manually adding the class seems to do the trick...
Meaning, instead of:
<span class="pi pi-bars" pReorderableRowHandle
I put:
<span class="pi pi-bars p-datatable-reorderablerow-handle"

@mehmetcetin01140
Copy link
Contributor

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap?

Thanks a lot for your understanding!
Best Regards,

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

3 participants