Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
npm
common
Commits
81242c0f
Commit
81242c0f
authored
Nov 26, 2018
by
Vladislav Lagunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AutoComplete] Восстановлен поиск в массиве
parent
bb02c978
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
+1
-2
fields/AutoComplete.tsx
+0
-1
fields/AutoComplete/state-machine.ts
+1
-1
No files found.
fields/AutoComplete.tsx
View file @
81242c0f
...
@@ -61,7 +61,6 @@ export default class AutoComplete<A=string> extends React.Component<Props<A>, St
...
@@ -61,7 +61,6 @@ export default class AutoComplete<A=string> extends React.Component<Props<A>, St
debounceTimer
:
number
|
null
=
null
;
debounceTimer
:
number
|
null
=
null
;
subscription
:
Rx
.
Subscription
|
null
=
null
;
subscription
:
Rx
.
Subscription
|
null
=
null
;
// Выполнение действий из ST
// Выполнение действий из ST
dispatch
=
(
action
:
ST
.
Action
<
A
>
)
=>
{
dispatch
=
(
action
:
ST
.
Action
<
A
>
)
=>
{
const
{
ctx
,
openOnFocus
,
openOnClick
,
source
}
=
this
.
props
;
const
{
ctx
,
openOnFocus
,
openOnClick
,
source
}
=
this
.
props
;
...
...
fields/AutoComplete/state-machine.ts
View file @
81242c0f
...
@@ -106,7 +106,7 @@ export function update<A>(ctx: Ctx<A>, action: Action<A>, state: State<A>): [Sta
...
@@ -106,7 +106,7 @@ export function update<A>(ctx: Ctx<A>, action: Action<A>, state: State<A>): [Sta
case
'Query'
:
{
case
'Query'
:
{
const
{
query
}
=
action
;
const
{
query
}
=
action
;
const
{
options
:
{
source
}
}
=
ctx
;
const
{
options
:
{
source
}
}
=
ctx
;
const
printItem
=
ctx
.
options
.
printItem
||
String
;
const
printItem
=
ctx
.
options
.
printItem
||
(
x
=>
JSON
.
stringify
(
x
))
;
if
(
Array
.
isArray
(
source
))
{
if
(
Array
.
isArray
(
source
))
{
// Поиск подходящих записей в массиве
// Поиск подходящих записей в массиве
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment