linear-react-components-ui 1.1.2-beta.20 → 1.1.2-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,7 @@ const DatePicker = props => {
32
32
  required = false,
33
33
  value = '',
34
34
  name = '',
35
+ inputRef: inputRefProp,
35
36
  dialogSize = {
36
37
  width: '350px',
37
38
  height: '350px'
@@ -233,6 +234,7 @@ const DatePicker = props => {
233
234
  },
234
235
  inputRef: el => {
235
236
  inputRef.current = el;
237
+ if (inputRefProp) inputRefProp.current = el;
236
238
  },
237
239
  rightElements: getButtonOpen(),
238
240
  required: required,
@@ -12,6 +12,7 @@ interface IDatePickerProps {
12
12
  setFocusOnSelect?: boolean;
13
13
  openOnFocus?: boolean;
14
14
  showCalendarInDialog?: boolean;
15
+ inputRef?: React.MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null>;
15
16
  dialogSize?: {
16
17
  width: string;
17
18
  height: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.2-beta.20",
3
+ "version": "1.1.2-beta.21",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",