Index: chrome/browser/resources/bookmark_manager/js/main.js |
diff --git a/chrome/browser/resources/bookmark_manager/js/main.js b/chrome/browser/resources/bookmark_manager/js/main.js |
index 6b5ef4173f41bc4dd801481012e50daa7dd42a00..1c97b64eb7bdce8754e4441e869099bd4cadf2e5 100644 |
--- a/chrome/browser/resources/bookmark_manager/js/main.js |
+++ b/chrome/browser/resources/bookmark_manager/js/main.js |
@@ -435,7 +435,8 @@ function updatePasteCommand(opt_f) { |
var promises = []; |
// The folders menu. |
- if (bmm.tree.selectedItem) { |
+ // We can not paste into search item in tree. |
+ if (bmm.tree.selectedItem && bmm.tree.selectedItem != searchTreeItem) { |
promises.push(new Promise(function(resolve) { |
var id = bmm.tree.selectedItem.bookmarkId; |
chrome.bookmarkManagerPrivate.canPaste(id, function(canPaste) { |