Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed undefined ref error when setting a data validation that is a range of cells at the worksheet level#1480

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
alubbe merged 2 commits intoexceljs:masterfromBene-Graham:fix-bug-1027
Oct 1, 2020

Conversation

@Bene-Graham
Copy link
Contributor

Fixed undefined ref error when setting a data validation that is a range of cells at the worksheet level

Summary

In the case where a data validation is set at the worksheet level with a range of cells "A1:A100" the errorCannot set property 'marked' of undefined would occur.

From what I could tell the original code would callconst addr = colCache.decodeAddress(dv.address); this would return the value "A1" in the case of the following "A1:A100". Later on in the code it would try to mark "A1"dvMap[otherAddress].marked = true;, but in the dvMap it would be "A1:A100" and the error occurs.

I changed decodeAddress to decodeEx so that we can detect if the address is a single cell vs a range(dimension?). If a dimensions property exist on the return object from decodeEx, it will shortcircuit and use the range.

Test plan

I added a integration test demonstrating it now works with no error:spec/integration/issues/issue-1027-sheet-defined-data-validate.spec.js

@Bene-Graham
Copy link
ContributorAuthor

One additional thing I believe this will solve the following issue:#1109 and#1027

Copy link
Member

@alubbealubbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for this PR, I just have some minor modifications that I'd like to see and then we're good to go

Copy link
Member

@alubbealubbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

thank you!

@alubbealubbe merged commitab776ef intoexceljs:masterOct 1, 2020
@Bene-GrahamBene-Graham deleted the fix-bug-1027 branchOctober 1, 2020 18:20
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@alubbealubbealubbe approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Bene-Graham@alubbe

[8]ページ先頭

©2009-2025 Movatter.jp