Comments (5)
it keeps adding but not removing on uncheck , same item adding multiple times
from vue3-table-lite.
Hi @WordpressArtist
I can't implement this problem on latest version, more detail please.
from vue3-table-lite.
I installed "vue3-table-lite": "^1.2.4"
now i set up
@return-checked-rows="onCheckRows"
:checked-return-type="'id'"
:has-checkbox="true"
now when i click on bulk check and uncheck works fine
but when i check individual row, it logs. the value
onCheckRows(rows) {
conosle.log(rows)
}
but when i uncheck, that the id must not be there but it still there.
Example:
i checked 1 row , please check log (i got 22 )
![Screenshot 2023-05-10 at 13 17 45](https://private-user-images.githubusercontent.com/12960551/237312739-10c36e6f-6bce-4930-8c3f-13746f594972.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDU0MTExNTQsIm5iZiI6MTcwNTQxMDg1NCwicGF0aCI6Ii8xMjk2MDU1MS8yMzczMTI3MzktMTBjMzZlNmYtNmJjZS00OTMwLThjM2YtMTM3NDZmNTk0OTcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTE2VDEzMTQxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE3MmVkODY5ODljMGZiY2Y2YTUwYmU3MjQ2ZGFjYTg2MDVlNjI2ZDZhZTI5N2U4MGExNjA0OGE4NGMwMTVhNzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rHf5xKHN9W0QgTE-vC_UvZJV3S3lQPnrrxEsEWU3aHM)
Now uncheck the same item i can see still 22 on log
![Screenshot 2023-05-10 at 13 17 51](https://private-user-images.githubusercontent.com/12960551/237312782-6478483a-b6d2-4e19-8715-0fd2b6b43a97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDU0MTExNTQsIm5iZiI6MTcwNTQxMDg1NCwicGF0aCI6Ii8xMjk2MDU1MS8yMzczMTI3ODItNjQ3ODQ4M2EtYjZkMi00ZTE5LTg3MTUtMGZkMmI2YjQzYTk3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTE2VDEzMTQxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk3MDNlYzAwNWY5ZmNmNTM5NmFiODAzOTI4NTBhYzBhYjBiYzBlMWZjODI0YjE3M2RiYzYyMDA5ZmUwOWFjMjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fFDohcFEDKdGiqM7bZhqUS9gsB6ehrHdmcUfBBTun-U)
now i check that item again i got 2 same data previous selected and current selected
![Screenshot 2023-05-10 at 13 18 05](https://private-user-images.githubusercontent.com/12960551/237312832-3c92ff90-be72-4167-9036-67b331ac03ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDU0MTExNTQsIm5iZiI6MTcwNTQxMDg1NCwicGF0aCI6Ii8xMjk2MDU1MS8yMzczMTI4MzItM2M5MmZmOTAtYmU3Mi00MTY3LTkwMzYtNjdiMzMxYWMwM2VlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTE2VDEzMTQxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA4ODFlMGViOWY3OTRlZGQ5Mjc1ZWM1YTg2N2Y0YTE5YjI4YTI1NjAzZjQ2NjMwNmQ2MWVkOTMzYjA2MGI4MGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hY8u4-xmsJEKd0ZQaIDC2PxS4eyFOPlUPWgMNHV97jM)
Now if i uncheck it still same 2 datas
if i again check it keeps adding item on array but not removing
from vue3-table-lite.
@WordpressArtist
Thanks for your information, I used ver1.2.4 to created an example to implement it, but can't implement the problem.
example
Can you implement this problem on codesandbox?
from vue3-table-lite.
@linmasahiro thanks it works now
from vue3-table-lite.
Related Issues (20)
- Clear checked items when changing pages.
- Is it possible to add apexchart sparkline to doSearch() function? HOT 10
- Could not find a way to change the route of the app using the buttons on table HOT 1
- click event not handled in tableLoadingFinish function HOT 2
- Static mode pagination not working as expected HOT 3
- Is it possible to add 'return clearChecked' if 'hasCheckbox'?
- Is it possible to add 'return clearChecked' if 'hasCheckbox'? HOT 6
- Bug when dynamically showing checkboxes HOT 1
- Grouping with toggle like a treeview inside table ? HOT 4
- [OTHERS] Call a Function inside of display property for a button HOT 12
- Examples not compatible with latest version of vue3 and node18 HOT 1
- Allow HTML in header HOT 4
- Vertical highlighting on mouse hover HOT 3
- has-checkbox and is-fixed-first-column turned on, only checkbox header stays when table scrolls horizontally. HOT 3
- checked items not being cleared HOT 6
- Page selection list too long HOT 1
- [Vue warn]: Hydration node mismatch HOT 5
- Hero text is visible on the side nav HOT 4
- Page-size and page-options not working HOT 1
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 vue3-table-lite.