-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bug] Fix cursor-jumping in text inputs
Working around facebook/react#955 by forcing a synchronous rerender on each keystroke, instead of letting PersistentCharacterStore defer the publication of its state change.
- Loading branch information
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
var reflux = require('reflux'); | ||
|
||
module.exports = reflux.createActions([ | ||
const CharActions = module.exports = reflux.createActions([ | ||
"add", | ||
"remove", // TODO: Change to delete? | ||
"update", | ||
"save", | ||
"load", | ||
|
||
"setName", | ||
"setPortrait", | ||
]); | ||
|
||
['setName', 'setPortrait'].forEach((a) => { | ||
CharActions[a] = reflux.createAction({sync: true}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters