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}
|
||||
hasSkippedActions={skippedActionIds.length > 0}
|
||||
hasStagedActions={actionIds.length > 1}
|
||||
searchValue={searchValue}
|
||||
/>
|
||||
<div
|
||||
data-testid="actionListRows"
|
||||
|
|
|
@ -16,6 +16,7 @@ interface Props {
|
|||
hideMainButtons: boolean | undefined;
|
||||
hasSkippedActions: boolean;
|
||||
hasStagedActions: boolean;
|
||||
searchValue: string | undefined;
|
||||
}
|
||||
|
||||
const ActionListHeader: FunctionComponent<Props> = ({
|
||||
|
@ -26,12 +27,14 @@ const ActionListHeader: FunctionComponent<Props> = ({
|
|||
onCommit,
|
||||
onSweep,
|
||||
hideMainButtons,
|
||||
searchValue,
|
||||
}) => (
|
||||
<div {...styling('actionListHeader')}>
|
||||
<input
|
||||
{...styling('actionListHeaderSearch')}
|
||||
onChange={(e) => onSearch(e.target.value)}
|
||||
placeholder="filter..."
|
||||
value={searchValue}
|
||||
/>
|
||||
{!hideMainButtons && (
|
||||
<div {...styling('actionListHeaderWrapper')}>
|
||||
|
|
Loading…
Reference in New Issue
Block a user