Skip to content

Allow menu to stay open after setting value#963

Closed
j-clark wants to merge 0 commit intoJedWatson:masterfrom
j-clark:master
Closed

Allow menu to stay open after setting value#963
j-clark wants to merge 0 commit intoJedWatson:masterfrom
j-clark:master

Conversation

@j-clark
Copy link

@j-clark j-clark commented May 16, 2016

Basically what I'm looking for is some way to keep the menu open after a value has been set.

In my specific case, I'm building a nested select that has a tree of options that are refined as you select them, until you select a leaf node, at which point the actual value of the select is set.

This allows me to do roughly:

onChange(value) {
  if (isLeafNode(value)) { 
    handleLeafNode(value);
  } else {
    handleNonLeafNode(value);
    return false;
  }
}

Open to any feedback or suggestions about a better way to achieve what I'm going for

@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.792% when pulling c01d2c7 on j-clark:master into 710bae6 on JedWatson:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.792% when pulling c01d2c7 on j-clark:master into 710bae6 on JedWatson:master.

@j-clark j-clark force-pushed the master branch 2 times, most recently from b8b9834 to 67ad569 Compare May 16, 2016 22:43
@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.792% when pulling 67ad569 on j-clark:master into 710bae6 on JedWatson:master.

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