Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Phyks
kresus
Commits
cd12d20a
Commit
cd12d20a
authored
May 16, 2018
by
Phyks (Lucas Verney)
Browse files
Match only labels and not values in Select fields
parent
b1064c2d
Pipeline
#52406
failed with stages
in 1 minute and 10 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/components/operations/category-select.js
View file @
cd12d20a
...
...
@@ -31,6 +31,7 @@ class CategorySelect extends React.Component {
id
=
{
this
.
props
.
id
}
onChange
=
{
this
.
handleChange
}
options
=
{
this
.
props
.
options
}
matchProp
=
"
label
"
/>
);
}
...
...
client/components/operations/search.js
View file @
cd12d20a
...
...
@@ -58,6 +58,7 @@ const SearchTypeSelect = connect(
onChange
=
{
props
.
handleOperationType
}
options
=
{
typeOptions
}
value
=
{
props
.
defaultValue
}
matchProp
=
"
label
"
/>
);
});
...
...
@@ -97,7 +98,7 @@ const SearchCategorySelect = connect(
}
].
concat
(
categories
.
map
(
cat
=>
({
value
:
cat
.
id
,
label
:
cat
.
title
})));
return
<
Select
value
=
{
props
.
defaultValue
}
onChange
=
{
props
.
handleChange
}
options
=
{
options
}
/>
;
return
<
Select
value
=
{
props
.
defaultValue
}
onChange
=
{
props
.
handleChange
}
options
=
{
options
}
matchProp
=
"
label
"
/>
;
});
const
MinDatePicker
=
connect
(
...
...
client/components/operations/type-select.js
View file @
cd12d20a
...
...
@@ -27,6 +27,7 @@ class TypeSelect extends React.Component {
clearable
=
{
false
}
onChange
=
{
this
.
handleChange
}
options
=
{
this
.
props
.
types
}
matchProp
=
"
label
"
/>
);
}
...
...
client/components/settings/bank-accesses/form.js
View file @
cd12d20a
...
...
@@ -254,6 +254,7 @@ class InitForm extends React.Component {
clearValueText
=
{
$t
(
'
client.search.clear
'
)}
value
=
{
selectedBankDescr
&&
selectedBankDescr
.
uuid
}
options
=
{
options
}
matchProp
=
"
label
"
/>
<
/div
>
<
/div
>
...
...
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