-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
fix: check if event is cancelable before calling preventDefault #132
Conversation
projects/angular-resizable-element/src/lib/resizable.directive.ts
Outdated
Show resolved
Hide resolved
.gitignore
Outdated
@@ -45,3 +45,5 @@ projects/angular-resizable-element/package.json | |||
# System Files | |||
.DS_Store | |||
Thumbs.db | |||
package-lock.json | |||
.gitignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can you remove the .gitignore
from this file as we don't want it to ignore itself 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Soz. Done.
Codecov Report
@@ Coverage Diff @@
## main #132 +/- ##
==========================================
- Coverage 81.00% 80.93% -0.07%
==========================================
Files 5 5
Lines 279 278 -1
Branches 58 58
==========================================
- Hits 226 225 -1
Misses 42 42
Partials 11 11
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
Released as |
Thanks Matt. Of course, I didn't think to look in the handle directive where there's another one for the mouseDown event. D'oh! I'll do another PR...I'm getting good at this now. :-D |
Hi Matt,
I've made the one-line change and I did check your automated tests run.
I didn't bother to create a branch. I don't normally bother as I work mostly alone and it's rare I work on code that isn't part of the core and needs to be in the next release anyway. Tell me if you'd rather I created a branch.
I will also confess I have not tested this by building it and using it in place of your npm library. This is down to time and the fact that this change is so simple. I hope you don't mind me not doing that - I would look at how to use it in place of an installed npm dependency for something more complex.
Over to you to accept or to bat back to me then...
Dan