File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ class PasswordField extends React.Component {
102
102
103
103
render ( ) {
104
104
const {
105
+ disableButton,
105
106
hintText,
106
107
errorText,
107
108
errorStyle,
@@ -140,7 +141,7 @@ class PasswordField extends React.Component {
140
141
onTouchTap = { ( ) => this . toggleVisibility ( ) }
141
142
iconStyle = { styles . visibilityIcon }
142
143
style = { styles . visibilityButton }
143
- disabled = { other . disabled }
144
+ disabled = { disableButton || other . disabled }
144
145
>
145
146
{ visible ? < Visibility /> : < VisibilityOff /> }
146
147
</ IconButton >
@@ -152,6 +153,7 @@ class PasswordField extends React.Component {
152
153
if ( process . env . NODE_ENV !== 'production' ) {
153
154
PasswordField . propTypes = {
154
155
...TextField . propTypes ,
156
+ disableButton : PropTypes . bool ,
155
157
visible : PropTypes . bool ,
156
158
textFieldStyle : PropTypes . object
157
159
}
You can’t perform that action at this time.
0 commit comments