@imposium-hub/components 1.32.2 → 1.32.4
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.
|
@@ -5,6 +5,7 @@ import { useDrop, DropTargetMonitor } from 'react-dnd';
|
|
|
5
5
|
interface IAssetsTableDropzoneProps {
|
|
6
6
|
onDrop : (i : any, monitor : DropTargetMonitor) => void;
|
|
7
7
|
children : any;
|
|
8
|
+
className ? : string;
|
|
8
9
|
disable? : boolean;
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -22,7 +23,7 @@ const AssetsTableDropzone : React.FC<IAssetsTableDropzoneProps> = (p : IAssetsTa
|
|
|
22
23
|
})
|
|
23
24
|
});
|
|
24
25
|
|
|
25
|
-
return (<div ref={(!p.disable) ? dropRef : undefined}>{p.children}</div>);
|
|
26
|
+
return (<div className = {p.className || ''} ref={(!p.disable) ? dropRef : undefined}>{p.children}</div>);
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export default AssetsTableDropzone;
|
|
@@ -46,6 +46,7 @@ class SelectField extends React.PureComponent<ISelectFieldProps, {}> {
|
|
|
46
46
|
const {label, placeholder, options, value, width, buttons, selectRef, disable, tooltip, info, labelPosition, disableFirst} = this.props;
|
|
47
47
|
let opts = [];
|
|
48
48
|
|
|
49
|
+
const selectValue = (value === null || value === undefined) ? '' : value;
|
|
49
50
|
const caret = <div key = 'caret' className = 'caret'>{ICON_CARET_DOWN}</div>;
|
|
50
51
|
|
|
51
52
|
let btns;
|
|
@@ -77,7 +78,7 @@ class SelectField extends React.PureComponent<ISelectFieldProps, {}> {
|
|
|
77
78
|
info = {info}
|
|
78
79
|
labelPosition = {labelPosition}
|
|
79
80
|
width = {width}>
|
|
80
|
-
<select value = {
|
|
81
|
+
<select value = {selectValue} onChange = {(e) => this.onChange(e)} ref = {selectRef} disabled = {disable}>
|
|
81
82
|
{opts}
|
|
82
83
|
</select>
|
|
83
84
|
</FieldWrapper>;
|