Skip to content

Commit

Permalink
fix(Autocomplete): Missing properties in PropTypes (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Apr 6, 2022
1 parent 0f734ae commit 1256009
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
11 changes: 11 additions & 0 deletions packages/dnb-eufemia/src/components/autocomplete/Autocomplete.js
Expand Up @@ -208,6 +208,13 @@ export default class Autocomplete extends React.PureComponent {
skeleton: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
portal_class: PropTypes.string,
drawer_class: PropTypes.string,
page_offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
observer_element: PropTypes.oneOfType([
PropTypes.string,
PropTypes.node,
]),
min_height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
enable_body_lock: PropTypes.bool,

class: PropTypes.string,
className: PropTypes.string,
Expand Down Expand Up @@ -293,6 +300,10 @@ export default class Autocomplete extends React.PureComponent {
skeleton: null,
portal_class: null,
drawer_class: null,
page_offset: null,
observer_element: null,
min_height: null,
enable_body_lock: false,

class: null,
className: null,
Expand Down
Expand Up @@ -27,6 +27,7 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
disable_reorder="disable_reorder"
disabled="disabled"
drawer_class="drawer_class"
enable_body_lock={true}
focusable="focusable"
global_status_id="main"
icon="icon"
Expand All @@ -45,10 +46,12 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
label_direction="horizontal"
label_sr_only="label_sr_only"
max_height={1}
min_height="min_height"
mode="sync"
no_animation={true}
no_options="no_options"
no_scroll_animation="no_scroll_animation"
observer_element="observer_element"
on_blur={[Function]}
on_change={[Function]}
on_focus={[Function]}
Expand All @@ -60,6 +63,7 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
open_on_focus="open_on_focus"
opened={true}
options_render={Object {}}
page_offset="page_offset"
placeholder="placeholder"
portal_class="portal_class"
prevent_close="prevent_close"
Expand Down Expand Up @@ -116,6 +120,7 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
disable_reorder="disable_reorder"
disabled="disabled"
drawer_class="drawer_class"
enable_body_lock={true}
fixed_position={false}
focusable="focusable"
global_status_id="main"
Expand All @@ -140,12 +145,12 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
label_sr_only="label_sr_only"
list_class={null}
max_height={1}
min_height={10}
min_height="min_height"
mode="sync"
no_animation={true}
no_options="no_options"
no_scroll_animation="no_scroll_animation"
observer_element={null}
observer_element="observer_element"
on_blur={[Function]}
on_change={[Function]}
on_focus={[Function]}
Expand All @@ -159,7 +164,7 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
open_on_focus="open_on_focus"
opened={null}
options_render={Object {}}
page_offset={null}
page_offset="page_offset"
placeholder="placeholder"
portal_class="portal_class"
prepared_data={null}
Expand Down Expand Up @@ -221,6 +226,7 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
disable_reorder="disable_reorder"
disabled="disabled"
drawer_class="drawer_class"
enable_body_lock={true}
focusable="focusable"
global_status_id="main"
icon="icon"
Expand All @@ -239,10 +245,12 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
label_direction="horizontal"
label_sr_only="label_sr_only"
max_height={1}
min_height="min_height"
mode="sync"
no_animation={true}
no_options="no_options"
no_scroll_animation="no_scroll_animation"
observer_element="observer_element"
on_blur={[Function]}
on_change={[Function]}
on_focus={[Function]}
Expand All @@ -254,6 +262,7 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
open_on_focus="open_on_focus"
opened={true}
options_render={Object {}}
page_offset="page_offset"
placeholder="placeholder"
portal_class="portal_class"
prevent_close="prevent_close"
Expand Down Expand Up @@ -1131,6 +1140,7 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
"disable_reorder": "disable_reorder",
"disabled": "disabled",
"drawer_class": "drawer_class",
"enable_body_lock": true,
"focusable": "focusable",
"global_status_id": "main",
"icon": "icon",
Expand All @@ -1149,10 +1159,12 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
"label_direction": "horizontal",
"label_sr_only": "label_sr_only",
"max_height": 1,
"min_height": "min_height",
"mode": "sync",
"no_animation": true,
"no_options": "no_options",
"no_scroll_animation": "no_scroll_animation",
"observer_element": "observer_element",
"on_blur": [Function],
"on_change": [Function],
"on_focus": [Function],
Expand All @@ -1164,6 +1176,7 @@ exports[`Autocomplete markup have to match snapshot 1`] = `
"open_on_focus": "open_on_focus",
"opened": true,
"options_render": Object {},
"page_offset": "page_offset",
"placeholder": "placeholder",
"portal_class": "portal_class",
"prevent_close": "prevent_close",
Expand Down
Expand Up @@ -166,6 +166,7 @@ exports[`Dropdown markup have to match snapshot 1`] = `
default_value="default_value"
direction="bottom"
disabled="disabled"
enable_body_lock={false}
fixed_position={false}
focusable="focusable"
global_status_id="main"
Expand Down
Expand Up @@ -46,6 +46,7 @@ export default class DrawerListProvider extends React.PureComponent {
static propTypes = {
...drawerListPropTypes,

enable_body_lock: PropTypes.bool,
use_drawer_on_mobile: PropTypes.oneOfType([
PropTypes.string,
PropTypes.bool,
Expand All @@ -61,6 +62,7 @@ export default class DrawerListProvider extends React.PureComponent {
static defaultProps = {
...drawerListDefaultProps,

enable_body_lock: false,
use_drawer_on_mobile: null,
page_offset: null,
observer_element: null,
Expand Down
Expand Up @@ -154,6 +154,7 @@ exports[`DrawerList markup have to match snapshot 1`] = `
}
default_value={null}
direction="bottom"
enable_body_lock={false}
fixed_position={false}
focusable={false}
handle_dismiss_focus={null}
Expand Down

0 comments on commit 1256009

Please sign in to comment.