Skip to content

Commit

Permalink
fix(colorpickers): disable hex spell checking and arrow by default (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jzempel committed Mar 10, 2021
1 parent c233db8 commit 0c1b8cf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
16 changes: 8 additions & 8 deletions packages/colorpickers/.size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"index.cjs.js": {
"bundled": 53045,
"minified": 34923,
"gzipped": 8005
"bundled": 53087,
"minified": 34949,
"gzipped": 8017
},
"index.esm.js": {
"bundled": 49980,
"minified": 32230,
"gzipped": 7866,
"bundled": 50022,
"minified": 32256,
"gzipped": 7878,
"treeshaked": {
"rollup": {
"code": 26404,
"code": 26430,
"import_statements": 845
},
"webpack": {
"code": 29457
"code": 29483
}
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/colorpickers/src/elements/Colorpicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export const Colorpicker = forwardRef<HTMLDivElement, IColorpickerProps>(
value={state.hexInput}
/* eslint-disable jsx-a11y/no-autofocus */
autoFocus={autofocus}
spellCheck={false}
onBlur={handleBlur}
onChange={handleHexChange}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ ColorpickerDialog.propTypes = {
ColorpickerDialog.defaultProps = {
placement: 'bottom-start',
isAnimated: true,
zIndex: 1000
zIndex: 1000,
hasArrow: false /* TooltipModal override */
};

ColorpickerDialog.displayName = 'ColorpickerDialog';

0 comments on commit 0c1b8cf

Please sign in to comment.