Skip to content

Commit

Permalink
fix: Select/MultiSelect focus submitting form (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Feb 5, 2020
1 parent cc59046 commit 630e622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/fuselage-ui-kit/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const defaultContext = {
action: (...args) => console.log(JSON.stringify(args)),
state: console.log,
appId: '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz',
errors: {}
errors: {},
};

export const kitContext = React.createContext(defaultContext);
Expand Down
2 changes: 1 addition & 1 deletion packages/fuselage/src/components/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const Addon = Box.extend('rcx-select__addon', 'div');

const Wrapper = Box.extend('rcx-select__wrapper', 'div'); // ({ children, ...props }) => <InnerWrapper children={React.Children.map(children, (c, i) => <Margins key={i} inline='x4'>{c}</Margins>)} {...props} />;

export const Focus = React.forwardRef((props, ref) => <Box ref={ref} textStyle='p2' textColor='hint' componentClassName='rcx-select__focus' is='button' {...props}/>);
export const Focus = React.forwardRef((props, ref) => <Box ref={ref} textStyle='p2' textColor='hint' componentClassName='rcx-select__focus' is='button' type='button' {...props}/>);

export const Select = ({
value,
Expand Down

0 comments on commit 630e622

Please sign in to comment.