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

Grid Select Improvements #138

Merged
merged 6 commits into from
May 17, 2018
Merged

Grid Select Improvements #138

merged 6 commits into from
May 17, 2018

Conversation

stdavis
Copy link
Member

@stdavis stdavis commented May 14, 2018

  • Remove "NaN" values
  • Fix "[other]" bug
  • Other "other" dialog improvements

You'll just have to believe me that the tests are passing.

@stdavis stdavis requested a review from steveoh May 14, 2018 17:46
});
}
}, this);
var existingOptions = Array.from(select.children).map(option => option.value);
Copy link
Member

Choose a reason for hiding this comment

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

This might need to be polyfilled if people are using IE at all.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I thought that Babel would take care of this one for me. I'm not too worried about supporting IE at this point for this project.

_getValueAttr() {
const inheritedValue = this.inherited(arguments);

return isNaN(inheritedValue) ? null : inheritedValue;
Copy link
Member

Choose a reason for hiding this comment

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

does this mess up the data submission or any of the local storage stuff?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. In fact, it fixes problems such as attempting to write a string (NaN) to numeric fields.

Copy link
Member

@steveoh steveoh May 15, 2018

Choose a reason for hiding this comment

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

Does 0 get written to the db for empty records?

@stdavis stdavis merged commit 29ba8f0 into master May 17, 2018
@stdavis stdavis deleted the nan branch May 17, 2018 17:30
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.

2 participants