-
-
Notifications
You must be signed in to change notification settings - Fork 41
fix: pre-set value for editor validation on paste #2363
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
Conversation
|
you can replicate the issue by applying this change to Example19 in the editor config. editor: { model: Editors.text, required: i === 5 ? true : false },now copy a text from somewhere else, place the cursor into a cell of ColumnF, hit ESC to leave the editor mode and hit CTRL+V |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2363 +/- ##
=======================================
Coverage 100.0% 100.0%
=======================================
Files 200 200
Lines 24419 24419
Branches 8584 8584
=======================================
Hits 24419 24419
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
angular-slickgrid
aurelia-slickgrid
slickgrid-react
slickgrid-vue
@slickgrid-universal/binding
@slickgrid-universal/common
@slickgrid-universal/composite-editor-component
@slickgrid-universal/custom-footer-component
@slickgrid-universal/custom-tooltip-plugin
@slickgrid-universal/empty-warning-component
@slickgrid-universal/event-pub-sub
@slickgrid-universal/excel-export
@slickgrid-universal/graphql
@slickgrid-universal/odata
@slickgrid-universal/pagination-component
@slickgrid-universal/pdf-export
@slickgrid-universal/row-detail-view-plugin
@slickgrid-universal/rxjs-observable
@slickgrid-universal/text-export
@slickgrid-universal/utils
@slickgrid-universal/vanilla-bundle
@slickgrid-universal/vanilla-force-bundle
commit: |
|
@zewa666 hey can you apply these changes on the |
|
yeah its affecting master, but right, I'll change target to next tomorrow. also need to come back to the other two open points |
|
sounds good, I think I'll do v10 Beta tomorrow after your PRs... no pressure haha. But even then I'm already working on a feature for v10.1, so if you can't make it then that's ok too |
|
closing in favor of #2368 |
hey there @ghiscoding
tbh I'm not sure why but with the latest update I've realized that the paste feature does no longer work for text/date fields defined with the
editor.required: true. From the change you can see that the validation performs the check against the previous item state, so in order to make this work I needed to apply it in advance.I really have no clue whether this used to work in a previous verison, can't remember if we checked that scenario explicitely, but I'd assume so. Moreover it only happens for TextEditors and the DateEditor, I couldn't replicate it on Booleans. Haven't checked the other editor types.
Any ideas what could have caused this? Was there perhaps a timing issue previously that caused this to work?