From bbf2d664953ab9b52ab489400643069a0b49c303 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 25 Jul 2016 12:15:55 -0700 Subject: [PATCH] Retain previous search term as initial value when starting next search --- js/customize-posts-panel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/customize-posts-panel.js b/js/customize-posts-panel.js index 04b862e..0641e72 100644 --- a/js/customize-posts-panel.js +++ b/js/customize-posts-panel.js @@ -78,6 +78,9 @@ }, multiple: false, placeholder: api.Posts.data.l10n.jumpToPostPlaceholder.replace( '%s', postTypeObj.labels.singular_name ), + nextSearchTerm: function retainSearchTerm( selectedObject, currentSearchTerm ) { + return currentSearchTerm; + }, width: '80%' // @todo Flex box? });