mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 11:03:57 +03:00
Fix inspector-monitor filter (#1077)
* Fix inspector-monitor filter * Create stale-deers-pump.md * Update stale-deers-pump.md
This commit is contained in:
parent
2ec10f00ee
commit
55cc37eacc
7
.changeset/stale-deers-pump.md
Normal file
7
.changeset/stale-deers-pump.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
'@redux-devtools/inspector-monitor': patch
|
||||||
|
'@redux-devtools/app': patch
|
||||||
|
'remotedev-redux-devtools-extension': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix filter to show state-controlled search value
|
|
@ -154,6 +154,7 @@ export default class ActionList<
|
||||||
hideMainButtons={hideMainButtons}
|
hideMainButtons={hideMainButtons}
|
||||||
hasSkippedActions={skippedActionIds.length > 0}
|
hasSkippedActions={skippedActionIds.length > 0}
|
||||||
hasStagedActions={actionIds.length > 1}
|
hasStagedActions={actionIds.length > 1}
|
||||||
|
searchValue={searchValue}
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
data-testid="actionListRows"
|
data-testid="actionListRows"
|
||||||
|
|
|
@ -16,6 +16,7 @@ interface Props {
|
||||||
hideMainButtons: boolean | undefined;
|
hideMainButtons: boolean | undefined;
|
||||||
hasSkippedActions: boolean;
|
hasSkippedActions: boolean;
|
||||||
hasStagedActions: boolean;
|
hasStagedActions: boolean;
|
||||||
|
searchValue: string | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ActionListHeader: FunctionComponent<Props> = ({
|
const ActionListHeader: FunctionComponent<Props> = ({
|
||||||
|
@ -26,12 +27,14 @@ const ActionListHeader: FunctionComponent<Props> = ({
|
||||||
onCommit,
|
onCommit,
|
||||||
onSweep,
|
onSweep,
|
||||||
hideMainButtons,
|
hideMainButtons,
|
||||||
|
searchValue,
|
||||||
}) => (
|
}) => (
|
||||||
<div {...styling('actionListHeader')}>
|
<div {...styling('actionListHeader')}>
|
||||||
<input
|
<input
|
||||||
{...styling('actionListHeaderSearch')}
|
{...styling('actionListHeaderSearch')}
|
||||||
onChange={(e) => onSearch(e.target.value)}
|
onChange={(e) => onSearch(e.target.value)}
|
||||||
placeholder="filter..."
|
placeholder="filter..."
|
||||||
|
value={searchValue}
|
||||||
/>
|
/>
|
||||||
{!hideMainButtons && (
|
{!hideMainButtons && (
|
||||||
<div {...styling('actionListHeaderWrapper')}>
|
<div {...styling('actionListHeaderWrapper')}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user