react-form-builder-more-flexibility 1.0.21 → 1.0.23

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.
@@ -124,7 +124,8 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
124
124
  var _this$props$data = this.props.data,
125
125
  showTimeSelect = _this$props$data.showTimeSelect,
126
126
  showTimeSelectOnly = _this$props$data.showTimeSelectOnly,
127
- showTimeInput = _this$props$data.showTimeInput;
127
+ showTimeInput = _this$props$data.showTimeInput,
128
+ placeholder = _this$props$data.placeholder;
128
129
  var props = {};
129
130
  props.type = 'date';
130
131
  props.className = 'form-control';
@@ -150,10 +151,10 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
150
151
  name: props.name,
151
152
  ref: props.ref,
152
153
  readOnly: readOnly,
153
- placeholder: this.state.placeholder,
154
+ placeholder: placeholder || this.state.placeholder,
154
155
  value: this.state.value,
155
156
  className: "form-control"
156
- }), iOS && !readOnly && /*#__PURE__*/_react["default"].createElement("div", {
157
+ }), !readOnly && /*#__PURE__*/_react["default"].createElement("div", {
157
158
  className: "input-group",
158
159
  style: {
159
160
  border: '1px solid #ced4da',
@@ -179,7 +180,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
179
180
  onFocus: function onFocus(e) {
180
181
  return _this2.handleBirthdayFocus();
181
182
  },
182
- placeholder: this.state.placeholder,
183
+ placeholder: placeholder || this.state.placeholder,
183
184
  maxLength: "2",
184
185
  pattern: "\\d*"
185
186
  }), this.state.birthdayFocused && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
@@ -238,22 +239,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
238
239
  // onChange={this.handleChange}
239
240
  // value={this.state.value}
240
241
  // className = "form-control" />
241
- , !iOS && !readOnly && /*#__PURE__*/_react["default"].createElement(_reactDatepicker["default"], {
242
- name: props.name,
243
- ref: props.ref,
244
- onChange: this.handleChange,
245
- selected: this.state.internalValue,
246
- todayButton: 'Today',
247
- className: "form-control",
248
- isClearable: true,
249
- showTimeSelect: showTimeSelect,
250
- showTimeSelectOnly: showTimeSelectOnly,
251
- showTimeInput: showTimeInput,
252
- dateFormat: this.state.formatMask,
253
- portalId: "root-portal",
254
- autoComplete: "off",
255
- placeholderText: placeholderText
256
- }))));
242
+ )));
257
243
  }
258
244
  }], [{
259
245
  key: "updateDateTime",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-form-builder-more-flexibility",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "A complete form builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",