| Index: chrome/browser/resources/md_history/list_container.js
|
| diff --git a/chrome/browser/resources/md_history/list_container.js b/chrome/browser/resources/md_history/list_container.js
|
| index 72aaa61d2af3307eb91304fa5f7985617ed113f3..5028965cdde8530275a74898aa19918252bd9726 100644
|
| --- a/chrome/browser/resources/md_history/list_container.js
|
| +++ b/chrome/browser/resources/md_history/list_container.js
|
| @@ -238,11 +238,13 @@ Polymer({
|
| var itemData = menu.itemData;
|
| browserService.deleteItems([itemData.item])
|
| .then(function(items) {
|
| - this.getSelectedList_().removeItemsByPath([itemData.path]);
|
| - // This unselect-all is to reset the toolbar when deleting a selected
|
| - // item. TODO(tsergeant): Make this automatic based on observing list
|
| + // This unselect-all resets the toolbar when deleting a selected item
|
| + // and clears selection state which can be invalid if items move
|
| + // around during deletion.
|
| + // TODO(tsergeant): Make this automatic based on observing list
|
| // modifications.
|
| this.fire('unselect-all');
|
| + this.getSelectedList_().removeItemsByPath([itemData.path]);
|
|
|
| var index = itemData.index;
|
| if (index == undefined)
|
|
|