Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 9e98154

Browse files
committed
Revert "Potential fix for URL bar lag."
This reverts commit 57ecf92. Fix #4573
1 parent 89e849a commit 9e98154

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

js/components/urlBar.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class UrlBar extends ImmutableComponent {
4848
return windowStore.getFrame(this.props.activeFrameKey)
4949
}
5050

51-
get isActive () {
51+
isActive () {
5252
return this.props.urlbar.get('active')
5353
}
5454

@@ -370,9 +370,6 @@ class UrlBar extends ImmutableComponent {
370370
}
371371

372372
render () {
373-
const value = !this.isActive || this.props.locationValueSuffix.length > 0
374-
? this.locationValue + this.props.locationValueSuffix
375-
: undefined
376373
return <form
377374
className='urlbarForm'
378375
action='#'
@@ -415,10 +412,10 @@ class UrlBar extends ImmutableComponent {
415412
onFocus={this.onFocus}
416413
onBlur={this.onBlur}
417414
onKeyDown={this.onKeyDown}
418-
onKeyUp={this.onChange}
415+
onChange={this.onChange}
419416
onClick={this.onClick}
420417
onContextMenu={this.onContextMenu}
421-
value={value}
418+
value={this.locationValue + this.props.locationValueSuffix}
422419
data-l10n-id='urlbar'
423420
className={cx({
424421
insecure: !this.props.isSecure && this.props.loading === false && !this.isHTTPPage,

0 commit comments

Comments
 (0)