react-form-builder-more-flexibility 1.0.19 → 1.0.21
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/app.js +1 -1
- package/lib/form-elements/date-picker.js +1 -1
- package/lib/toolbar.js +1 -1
- package/package.json +1 -1
|
@@ -179,7 +179,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
179
179
|
onFocus: function onFocus(e) {
|
|
180
180
|
return _this2.handleBirthdayFocus();
|
|
181
181
|
},
|
|
182
|
-
placeholder: this.state.placeholder
|
|
182
|
+
placeholder: this.state.placeholder,
|
|
183
183
|
maxLength: "2",
|
|
184
184
|
pattern: "\\d*"
|
|
185
185
|
}), this.state.birthdayFocused && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
package/lib/toolbar.js
CHANGED
|
@@ -472,7 +472,7 @@ var Toolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
// add placeholder to form input
|
|
475
|
-
if (['NumberInput', 'EmailInput', 'TextInput', 'PhoneNumber', 'TextArea'].indexOf(element) !== -1) {
|
|
475
|
+
if (['NumberInput', 'EmailInput', 'TextInput', 'PhoneNumber', 'TextArea', 'DatePicker'].indexOf(element) !== -1) {
|
|
476
476
|
elementOptions.showPlaceholder = true;
|
|
477
477
|
}
|
|
478
478
|
if (item.type === 'custom') {
|