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

feature/reset #92

Closed
wants to merge 4 commits into from
Closed

feature/reset #92

wants to merge 4 commits into from

Conversation

FDiskas
Copy link

@FDiskas FDiskas commented Nov 10, 2017

Fixes #89 #62 #27 #74

Copy link
Owner

@Sharlaan Sharlaan left a comment

Choose a reason for hiding this comment

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

Where did you find this file o.O master never had this.

@@ -515,7 +531,7 @@ class SelectField extends Component {
: elementHeight
*/
const autoCompleteHeight = this.state.showAutocomplete ? 53 : 0
const footerHeight = menuCloseButton ? 36 : 0
const footerHeight = (menuCloseButton || menuCancelButton) ? 36 : 0
Copy link
Owner

Choose a reason for hiding this comment

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

What are the difference(s) between the two ? i smell redundancy...

Copy link
Author

Choose a reason for hiding this comment

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

One is submiting changes, other is canceling and reseting changes

Copy link
Owner

Choose a reason for hiding this comment

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

OMG, i totally misunderstood you:

  • in your original issue, i thought you wanted some button deselecting all selected options, SSF returning an empty value
  • but your last comment here sound more like you wish for a canceling button on a per-option basis, ie deselect selected options from some queue, one by one ?

Copy link
Author

Choose a reason for hiding this comment

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

About deselect all - this is other feature request not implemented here

Copy link
Owner

Choose a reason for hiding this comment

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

Honestly please stay in your issue topic, not in a PR. I think more and more data manipulation is NOT SSF duty, but dev's....
We are currently going into a big environment transfer (see PR). So didnot get time yet to help you with this.

@@ -427,8 +443,8 @@ class SelectField extends Component {
const { children, floatingLabel, hintText, hintTextAutocomplete, multiple, disabled, nb2show,
autocompleteFilter, selectionsRenderer, menuCloseButton, anchorOrigin, canAutoPosition,
style, menuStyle, elementHeight, innerDivStyle, selectedMenuItemStyle, menuGroupStyle, menuFooterStyle,
floatingLabelStyle, floatingLabelFocusStyle, underlineStyle, underlineFocusStyle,
autocompleteUnderlineStyle, autocompleteUnderlineFocusStyle, noMatchFound, noMatchFoundStyle,
floatingLabelStyle, floatingLabelFocusStyle, underlineStyle, underlineFocusStyle, useLayerForClickAway,
Copy link
Owner

Choose a reason for hiding this comment

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

useLayerForClickAway is a hack, i always wanted to avoid using this ! So big no

Copy link
Author

Choose a reason for hiding this comment

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

But that is added in your documentation as configurable property. But that was not true, so I fixed that. So you want me to remove that?

Copy link
Owner

Choose a reason for hiding this comment

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

Indeed, you are right. I'll handle that later. Thanks

@Sharlaan Sharlaan closed this Nov 10, 2017
@FDiskas
Copy link
Author

FDiskas commented Nov 10, 2017

What you mean by closing this pull request? Should I wait for thous features from you or they will never be added? 😰

@Sharlaan
Copy link
Owner

Should wait ^^
I'm almost sure it's much easier to handle this reset/selectall outside of SSF

@FDiskas
Copy link
Author

FDiskas commented Nov 10, 2017

Nope. Example needed then :)

@FDiskas
Copy link
Author

FDiskas commented Nov 12, 2017

At this point I'm going to fork your plugin

@FDiskas
Copy link
Author

FDiskas commented Dec 2, 2017

Forked version is here https://github.com/moebel-de/material-ui-superselectfield
Cancel and submit button. By clicking on clickaway or cancel button the state is reverted.
Thanks 👄

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