Index: chrome/browser/resources/options/language_list.js |
diff --git a/chrome/browser/resources/options/language_list.js b/chrome/browser/resources/options/language_list.js |
index 1030a0ac70e449e6cd59f36bf21855a1f61d738e..578a1f7f713df8a91220c2cb672a5efa77857299 100644 |
--- a/chrome/browser/resources/options/language_list.js |
+++ b/chrome/browser/resources/options/language_list.js |
@@ -400,11 +400,6 @@ cr.define('options', function() { |
this.selectionModel.selectedIndex = originalSelectedIndex; |
// The lead index should be updated too. |
this.selectionModel.leadIndex = originalSelectedIndex; |
- } else if (this.dataModel.length > 0) { |
- // Otherwise, select the first item if it's not empty. |
- // Note that ListSingleSelectionModel won't select an item |
- // automatically, hence we manually select the first item here. |
Dan Beam
2016/01/25 23:27:16
this is why selectedIndex starts as -1:
https://co
|
- this.selectionModel.selectedIndex = 0; |
Kevin Bailey
2016/01/22 15:12:50
While looking around, trying to figure out how sto
please use gerrit instead
2016/01/22 18:31:09
I defer to Dan as the resident JS expert.
Dan Beam
2016/01/25 23:27:16
this is where selectionModel is created (on page l
|
} |
}, |