Bug 1621928 - Persist the filter text r=Honza

Differential Revision: https://phabricator.services.mozilla.com/D66823

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Hubert Boma Manilla 2020-03-16 07:06:42 +00:00
Родитель b9072f2115
Коммит 039293fd74
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -225,7 +225,7 @@ class ResponsePanel extends Component {
},
header: sectionName,
id: "jsonpScopeName",
opened: !!targetSearchResult,
opened: !!targetSearchResult || filterText,
shouldOpen: item => {
const { currentOpen } = this.state;
if (typeof currentOpen == "undefined" && item.id === items[0].id) {
@ -294,7 +294,7 @@ class ResponsePanel extends Component {
),
},
header: RESPONSE_PAYLOAD,
id: "paramsPostPayload",
id: "responsePayload",
opened: !!targetSearchResult,
shouldOpen: item => {
const { currentOpen } = this.state;
@ -330,6 +330,7 @@ class ResponsePanel extends Component {
type: "filter",
onChange: filter => this.setState({ filterText: filter }),
placeholder: JSON_FILTER_TEXT,
value: filterText,
})
),
Accordion({ items })