File tree 1 file changed +4
-2
lines changed
src/dashboard/Data/Browser 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ import Option from 'components/Dropdown/Option.react';
15
15
import React from 'react' ;
16
16
17
17
export default class RemoveColumnDialog extends React . Component {
18
- constructor ( props ) {
18
+ constructor ( ) {
19
19
super ( ) ;
20
20
this . state = {
21
- name : props . currentColumns [ 0 ]
21
+ name : null
22
22
} ;
23
23
}
24
24
@@ -34,6 +34,7 @@ export default class RemoveColumnDialog extends React.Component {
34
34
}
35
35
input = {
36
36
< Dropdown
37
+ placeHolder = 'Select a column'
37
38
value = { this . state . name }
38
39
onChange = { ( name ) => this . setState ( { name : name } ) } >
39
40
{ this . props . currentColumns . map ( ( t ) => < Option key = { t } value = { t } > { t } </ Option > ) }
@@ -50,6 +51,7 @@ export default class RemoveColumnDialog extends React.Component {
50
51
confirmText = 'Remove column'
51
52
cancelText = { 'Never mind, don\u2019t.' }
52
53
onCancel = { this . props . onCancel }
54
+ disabled = { ! this . state . name }
53
55
onConfirm = { ( ) => {
54
56
this . props . onConfirm ( this . state . name ) ;
55
57
} }
You can’t perform that action at this time.
0 commit comments