Closed sam-eah closed 3 years ago
Hey! Thanks for the PR. I am not sure I understand cause you can use the selectMode
, see https://github.com/d3lm/ngx-drag-to-select#dts-select-container. Have you tried to enable that? Or is this not what you are looking for. Do you simply want to disable selection on click but still be able to drag to select items?
I guess selectMode
is slightly different cause you can't drag anymore. It's more useful for mobile so I think I do see a value in this new option.
Can you please add tests for this as well and fix the linting issues?
Strange. I just looked at the linting error and it's a little weird.
Do you simply want to disable selection on click but still be able to drag to select items?
Yes, exactly !
Makes sense. I am down to continue with this PR if you add tests and fix CI.
It's a bit strange, I juste tried the cypress tests on my local server and they all passed
And I got no errors from linting or styling with the commands style
and lint:check
either
Do you have any idea ?
Hm that's indeed very strange. I can look into this on the weekend if I find the time and give it a try on my machine.
I have also restarted all jobs. Maybe that helps 🤷♂️
I have also restarted all jobs. Maybe that helps 🤷♂️
Okay now all Cypress tests pass!
But the lint task still fails: npm ERR! code ELIFECYCLE
I would typically try these commands for this error, but I'm not sure how github CI pipelines handle node modules 😓
npm cache clean --force
rm -rf node_modules package-lock.json
npm install
Hello, any updates ?
Sorry for my late response. Been super busy lately. I try to have a look this week to see if I can find out why the Lint stage fails and how I can fix it. It also fails in another PR 🤔
No worries, thanks for your time!
Ok I think I have fixed CI. Can you please rebase your PR?
Great, hopefully it'll work now!
I just merged another PR. Please rebase this PR again on latest master. Thanks!
Hello, I've added some e2e tests, please tell me if this suits you
Awesome! Do you know when a new npm version can be released?
It's now published. You can grab 4.2.0.
Amazing, thanks!
This small PR gives the ability to chose wether an item should be selected by clicking on it. This is done using a new input,
selectOnClick
indts-select-container
.I'm using this library with some custom drag & drop for a file explorer project. I need to be able to drag & drop all selected items together, however at the current state it is not possible, since starting to drag by clicking on an item will unselect all other items. This fixes this issue.
Thanks again for the awesome work :)