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

fix: when onResizeStart return false it should stop #1339

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Jan 17, 2024

  • when onResizeStart returns false, for example when editor commitCurrentEdit() fails, then the column resize shouldn't be allowed

onResizeStart: (e, resizeElms): boolean | void => {
const targetEvent = (e as TouchEvent).touches ? (e as TouchEvent).changedTouches[0] : e;
if (!this.getEditorLock()?.commitCurrentEdit()) {
return false;
}

brave_I40YFJ1bdv

- when `onResizeStart` returns `false`, for example when editor `commitCurrentEdit()` fails, then the column resize shouldn't be allowed
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bc4402a) 99.4% compared to head (82da818) 99.4%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1339     +/-   ##
========================================
+ Coverage    99.4%   99.4%   +0.1%     
========================================
  Files         198     198             
  Lines       21284   21285      +1     
  Branches     7097    7098      +1     
========================================
+ Hits        21144   21145      +1     
  Misses        140     140             

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghiscoding ghiscoding merged commit 5a3bd1c into master Jan 17, 2024
5 checks passed
@ghiscoding ghiscoding deleted the bugfix/resize-start-false branch January 17, 2024 05:40
ghiscoding added a commit that referenced this pull request Jan 17, 2024
- when `onDragInit` returns `false` then the row or cell dragging shouldn't be allowed
- this is similar to previous PR #1339
ghiscoding added a commit that referenced this pull request Jan 17, 2024
* fix: when `onDragInit` return false it should stop
- when `onDragInit` returns `false` then the row or cell dragging shouldn't be allowed
- this is similar to previous PR #1339
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant