Comments (2)
It took me a while to figure out this, had to dig into the code and finally found
@laurz94 that you need to add "preventSelectionSetterPropagation" input to the p-table
Example:
<p-table [value]="products" selectionMode="multiple" [(selection)]="selectedProducts" preventSelectionSetterPropagation [metaKeySelection]="metaKey" dataKey="code" [tableStyle]="{ 'min-width': '50rem' }">
<p-table>
@cetincakiroglu This is my first contribution, feel free to assign me more basic issue I would like to contribute and learn.
from primeng.
Thank you, @yash-kh, for looking into this issue for me. However, your solution did not fix the selection problem. After adding the directive you suggested, the clear button no longer works. I have updated my stackblitz so you see the behavior after adding the directive.
from primeng.
Related Issues (20)
- tabMenu breaks table virtual scroll calculations HOT 2
- Primeng Table: Clear the filters which are not applied when filter menu closed by clicking outside the menu
- PrimeNGConfig | Add csp
- Listbox unit test fix
- Fileupload
- InputOtp: Paste function works when readonly set to true
- Menubar, MegaMenu: Submenu doesn't open on mouseover, when using touchscreen notebook with mouse
- Orderlist Unit Test Fix
- InputSwitch Component: Fix unit test
- Table filter: templating filter as Calendar with selectionMode range throws error
- MultiSelect Unit Test Fix
- TreeSelect | lazy support
- Split button: tooltip for the items HOT 1
- Button | Remove wrapper span elements from icon templates
- @bon-vivant
- Hi, this is still an issue in 17.16.1, can you please check? Thanks in advance
- Dropdown: Cannot read properties of null (reading 'classList') HOT 1
- TreeTable Component: fix unit test
- Button Directive | label input type mismatch HOT 1
- FileUpload: Fix unit tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primeng.