mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Drop batchedUpdates on input since we're batching in the model anyway
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
React = require 'react'
|
||||
ReactUpdates = require 'react/lib/ReactUpdates'
|
||||
{div} = require 'reactionary'
|
||||
|
||||
InputComponent = require './input-component'
|
||||
@@ -40,8 +39,11 @@ EditorScrollViewComponent = React.createClass
|
||||
onInput: (char, replaceLastCharacter) ->
|
||||
{editor} = @props
|
||||
|
||||
ReactUpdates.batchedUpdates ->
|
||||
editor.selectLeft() if replaceLastCharacter
|
||||
if replaceLastCharacter
|
||||
editor.transact ->
|
||||
editor.selectLeft()
|
||||
editor.insertText(char)
|
||||
else
|
||||
editor.insertText(char)
|
||||
|
||||
onMouseDown: (event) ->
|
||||
|
||||
Reference in New Issue
Block a user