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.
@@ -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 || "Birthday",
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') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-form-builder-more-flexibility",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "A complete form builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",