diff --git a/src/index.js b/src/index.js
index 07988e0f..08da2ae5 100644
--- a/src/index.js
+++ b/src/index.js
@@ -958,30 +958,6 @@ class PhoneInput extends React.Component {
onKeyDown={this.handleKeydown}>
{specialLabel &&
{specialLabel}
}
{errorMessage && {errorMessage}
}
- {
- this.numberInputRef = el;
- if (typeof this.props.inputProps.ref === 'function') {
- this.props.inputProps.ref(el);
- } else if (typeof this.props.inputProps.ref === 'object') {
- this.props.inputProps.ref.current = el;
- }
- }}
- />
+ {
+ this.numberInputRef = el;
+ if (typeof this.props.inputProps.ref === 'function') {
+ this.props.inputProps.ref(el);
+ } else if (typeof this.props.inputProps.ref === 'object') {
+ this.props.inputProps.ref.current = el;
+ }
+ }}
+ />
);
}
diff --git a/src/style/high-res.less b/src/style/high-res.less
index 21d2b2b6..b65a5c2e 100644
--- a/src/style/high-res.less
+++ b/src/style/high-res.less
@@ -39,6 +39,7 @@
background-color: #f5f5f5;
border: 1px solid #cacaca;
border-radius: 3px 0 0 3px;
+ z-index: 1;
&:hover, &:focus {
cursor: pointer;
}
diff --git a/src/style/material.less b/src/style/material.less
index 913d9941..ba824d77 100644
--- a/src/style/material.less
+++ b/src/style/material.less
@@ -40,6 +40,7 @@
bottom: 0;
padding: 0;
border-radius: 3px 0 0 3px;
+ z-index: 1;
&:hover, &:focus {
cursor: pointer;
}
diff --git a/src/style/semantic-ui.less b/src/style/semantic-ui.less
index 70d77352..01fc75de 100644
--- a/src/style/semantic-ui.less
+++ b/src/style/semantic-ui.less
@@ -45,6 +45,7 @@
background-color: #f5f5f5;
border: 1px solid #cacaca;
border-radius: 3px 0 0 3px;
+ z-index: 1;
&:hover, &:focus {
cursor: pointer;
}
diff --git a/src/style/style.less b/src/style/style.less
index 298a1046..1a531c01 100644
--- a/src/style/style.less
+++ b/src/style/style.less
@@ -35,6 +35,7 @@
background-color: #f5f5f5;
border: 1px solid #cacaca;
border-radius: 3px 0 0 3px;
+ z-index: 1;
&:hover, &:focus {
cursor: pointer;
}