This repository was archived by the owner on Dec 11, 2019. It is now read-only.
Commit 9e98154 1 parent 89e849a commit 9e98154 Copy full SHA for 9e98154
File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class UrlBar extends ImmutableComponent {
48
48
return windowStore . getFrame ( this . props . activeFrameKey )
49
49
}
50
50
51
- get isActive ( ) {
51
+ isActive ( ) {
52
52
return this . props . urlbar . get ( 'active' )
53
53
}
54
54
@@ -370,9 +370,6 @@ class UrlBar extends ImmutableComponent {
370
370
}
371
371
372
372
render ( ) {
373
- const value = ! this . isActive || this . props . locationValueSuffix . length > 0
374
- ? this . locationValue + this . props . locationValueSuffix
375
- : undefined
376
373
return < form
377
374
className = 'urlbarForm'
378
375
action = '#'
@@ -415,10 +412,10 @@ class UrlBar extends ImmutableComponent {
415
412
onFocus = { this . onFocus }
416
413
onBlur = { this . onBlur }
417
414
onKeyDown = { this . onKeyDown }
418
- onKeyUp = { this . onChange }
415
+ onChange = { this . onChange }
419
416
onClick = { this . onClick }
420
417
onContextMenu = { this . onContextMenu }
421
- value = { value }
418
+ value = { this . locationValue + this . props . locationValueSuffix }
422
419
data-l10n-id = 'urlbar'
423
420
className = { cx ( {
424
421
insecure : ! this . props . isSecure && this . props . loading === false && ! this . isHTTPPage ,
You can’t perform that action at this time.
0 commit comments