Skip to content

Commit 6f24f43

Browse files
committed
Show loading data in PF3 select
1 parent 7c5e8f3 commit 6f24f43

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/pf3-component-mapper/src/files/select/select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ const Select = ({ input, loadOptions, ...props }) => {
204204
Select.defaultProps = {
205205
placeholder: 'Search...',
206206
classNamePrefix: 'ddorg__pf3-component-mapper__select',
207-
loadingMessage: 'Loading...'
207+
loadingMessage: 'Loading...',
208+
updatingMessage: 'Loading data'
208209
};
209210

210211
Select.propTypes = {

packages/pf3-component-mapper/src/tests/form-fields/select/__snapshots__/select.test.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ exports[`<SelectField /> should mount Async correctly 1`] = `
4646
]
4747
}
4848
placeholder="Search..."
49+
updatingMessage="Loading data"
4950
>
5051
<Select
5152
className="pf3-select"
@@ -81,6 +82,7 @@ exports[`<SelectField /> should mount Async correctly 1`] = `
8182
placeholder="Search..."
8283
pluckSingleValue={true}
8384
simpleValue={true}
85+
updatingMessage="Loading data"
8486
>
8587
<StateManager
8688
className="pf3-select"

0 commit comments

Comments
 (0)