mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Use correct empty value in ChoiceEditor.getCellValue
Summary: The default value of Choice columns is empty string, but ChoiceEditor was saving nulls whenever a blank value was saved. This was causing unexpected updates to trigger values due to the cell value changing internally, even though null and empty string appear the same in the UI. Test Plan: Browser test. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D4242
This commit is contained in:
@@ -77,7 +77,7 @@ ChoiceEditor.prototype.getCellValue = function() {
|
||||
if (selectedItem) {
|
||||
return selectedItem.label;
|
||||
} else if (this.textInput.value.trim() === '') {
|
||||
return null;
|
||||
return '';
|
||||
} else {
|
||||
return TextEditor.prototype.getCellValue.call(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user