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

Fixed reset input value on closed menu in some case #2232

Closed
wants to merge 50 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
3a3bf6f
Fixed two warnings on running tests
yuri-sakharov Dec 19, 2017
1565164
Fixed autofocus warnings
yuri-sakharov Dec 19, 2017
4301b94
Fixed reset input value on closed menu
yuri-sakharov Dec 19, 2017
55b3a5b
Refactor Select.js
yuri-sakharov Dec 19, 2017
1cc9bf5
Minor spaces
yuri-sakharov Dec 19, 2017
62b4efb
Removed line
yuri-sakharov Dec 19, 2017
9e003b7
Spaces
yuri-sakharov Dec 19, 2017
b09afb9
Removed !!
yuri-sakharov Dec 19, 2017
8a5689f
Alphabetically sorted
yuri-sakharov Dec 19, 2017
bb8e7b0
One more alphabetically ordered
yuri-sakharov Dec 19, 2017
eb62239
arrowRenderer changed to arrow function
yuri-sakharov Dec 20, 2017
c544de5
clearRenderer changed to arrow function
yuri-sakharov Dec 20, 2017
5791fb9
Refactored defaultFilterOptions file
yuri-sakharov Dec 20, 2017
b35f8d0
Refactored defaultMenuRenderer file
yuri-sakharov Dec 21, 2017
880a473
Refactored stripDiacritics file
yuri-sakharov Dec 22, 2017
f7a17a6
Refactored trim file
yuri-sakharov Dec 22, 2017
4fa40cb
Refactored Async.js
yuri-sakharov Dec 22, 2017
d205e64
Refactored AsyncCreatable.js
yuri-sakharov Dec 22, 2017
69868a0
Refactored Creatable.js
yuri-sakharov Dec 22, 2017
d923fb6
Refactored Option.js
yuri-sakharov Dec 22, 2017
9185809
Refactored Value.js
yuri-sakharov Dec 22, 2017
2823b81
Fixed console error
yuri-sakharov Dec 22, 2017
ba0f10c
Fixed focused option
yuri-sakharov Dec 22, 2017
3a4fe26
Fixed readme example
yuri-sakharov Dec 22, 2017
ef604c6
Added tests
yuri-sakharov Dec 23, 2017
022ce93
Refactored previous added tests
yuri-sakharov Dec 23, 2017
9ae8edd
Added missing tests for Option.js and refactored Option-test.js.
yuri-sakharov Dec 23, 2017
0213219
Added missing tests for Async.js
yuri-sakharov Dec 23, 2017
cbdeeec
Updated babel-preset-es2015 to babel-preset-env
Dec 27, 2017
bb69f47
Merge pull request #2246 from yuri-sakharov/fix/readme-1
JedWatson Jan 4, 2018
f2aefff
Merge pull request #2244 from yuri-sakharov/fix/console-error-in-example
JedWatson Jan 4, 2018
1c34119
Merge pull request #2250 from yuri-sakharov/tests/async
JedWatson Jan 4, 2018
d12ea53
Merge pull request #2249 from yuri-sakharov/tests/option
JedWatson Jan 4, 2018
6415163
fixed regressions in the following PRs: 2215, 2205 and 2226
gwyneplaine Jan 4, 2018
c01031f
Merge pull request #2231 from yuri-sakharov/fix/warnings-in-tests-2
JedWatson Jan 4, 2018
c98fdd0
added tests, adjusted focusAdjacentOption logic
gwyneplaine Jan 4, 2018
e66f256
Merge remote-tracking branch 'origin' into clee/resolve-regressions
gwyneplaine Jan 4, 2018
e6499a4
added internal method for clearing state called setInputValue
gwyneplaine Jan 4, 2018
1c20dc2
added clearvalue functionality to State example
gwyneplaine Jan 4, 2018
125a32f
Merge pull request #2259 from JedWatson/clee/resolve-regressions
gwyneplaine Jan 4, 2018
baafaf4
Merge pull request #2245 from yuri-sakharov/fix/focused-option
JedWatson Jan 5, 2018
26cf265
Merge pull request #2254 from RamYadlapalli/master
JedWatson Jan 5, 2018
99acc31
Merge pull request #2243 from yuri-sakharov/refactor/src-files
JedWatson Jan 5, 2018
15920b2
Merge branch 'master' into refactor/select-1
JedWatson Jan 5, 2018
145b62c
Merge branch 'master' into refactor/select-1
JedWatson Jan 5, 2018
6f52559
Merge pull request #2234 from yuri-sakharov/refactor/select-1
JedWatson Jan 5, 2018
075336e
export blockEvent to utils, update Options-test and Options to reflec…
gwyneplaine Jan 5, 2018
4a5d46f
Merge pull request #2262 from JedWatson/2234-refactor
gwyneplaine Jan 5, 2018
28373e1
Adding sweet-changelogs config
JedWatson Jan 5, 2018
07ffedd
Merge branch 'fix/clear-input-value-on-close' of github.com:yuri-sakh…
yuri-sakharov Jan 17, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"ignore": ["node-modules/**", "src/index.umd.js"],
"presets": [ "es2015", "stage-0", "react"],
"presets": [ "env", "stage-0", "react"],
"env": {
"test": {
"plugins": ["istanbul"],
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ bower_components

# Other
.DS_Store

.env
yarn.lock
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.4.7
8.4.0
6 changes: 6 additions & 0 deletions .sweet-changelogs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
filename: 'HISTORY.md',
message: ({ pr, user }) =>
`* ${pr.title}, thanks [${user.name ||
user.login}](${user.url}) - [see PR](${pr.url})`,
};
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,13 @@ class App extends React.Component {
console.log(`Selected: ${selectedOption.label}`);
}
render() {
const { selectedOption } = this.state;
const value = selectedOption && selectedOption.value;

return (
<Select
name="form-field-name"
value={this.state.selectedOption.value}
value={value}
onChange={this.handleChange}
options={[
{ value: 'one', label: 'One' },
Expand Down
Loading