@mw-kit/mw-ui 1.7.42 → 1.7.43
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.
package/dist/index.modern.js
CHANGED
|
@@ -15259,13 +15259,14 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15259
15259
|
var v = inputValue.replace(/\D+/g, '').substring(0, country.charLimit);
|
|
15260
15260
|
setValue(country.ddi + " " + v);
|
|
15261
15261
|
}, [inputValue]);
|
|
15262
|
+
var placeholder = props.placeholder && props.placeholder[country.iso] ? props.placeholder[country.iso] : country.placeholder;
|
|
15262
15263
|
return React__default.createElement(RelativeContainer$3, {
|
|
15263
15264
|
ref: useOnClickOut(function () {
|
|
15264
15265
|
return setOpen(false);
|
|
15265
15266
|
})
|
|
15266
15267
|
}, React__default.createElement(Input$1, Object.assign({}, props, {
|
|
15267
15268
|
type: 'text',
|
|
15268
|
-
placeholder:
|
|
15269
|
+
placeholder: placeholder,
|
|
15269
15270
|
mask: mask,
|
|
15270
15271
|
value: inputValue,
|
|
15271
15272
|
setValue: setInputValue,
|