Skip to content

Commit

Permalink
feat(simple-color-picker): add forwardRef that returns all color inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
grabkowski committed Feb 17, 2023
1 parent 10b6b16 commit ea29b7c
Show file tree
Hide file tree
Showing 3 changed files with 256 additions and 248 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const AdvancedColorPicker = ({

const simpleColorPickerData = useRef<{
gridItemRefs: Array<HTMLInputElement | null>;
}>();
}>(null);

const colors = availableColors.map(({ value, label }, index) => {
return {
Expand Down
5 changes: 4 additions & 1 deletion src/components/simple-color-picker/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export { default as SimpleColorPicker } from "./simple-color-picker.component";
export type { SimpleColorPickerProps } from "./simple-color-picker.component";
export type {
SimpleColorPickerProps,
SimpleColorPickerRef,
} from "./simple-color-picker.component";
export { default as SimpleColor } from "./simple-color";
export type { SimpleColorProps } from "./simple-color";
Loading

0 comments on commit ea29b7c

Please sign in to comment.