@luomus/laji-form 15.1.32 → 15.1.33

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.
@@ -40,7 +40,8 @@ function VirtualSchemaField(ComposedComponent) {
40
40
  "registry",
41
41
  "onChange",
42
42
  "disabled",
43
- "readonly"
43
+ "readonly",
44
+ "required"
44
45
  ].reduce((_props, prop) => {
45
46
  if (prop in props)
46
47
  _props[prop] = props[prop];
@@ -748,7 +748,7 @@ class Autosuggest extends React.Component {
748
748
  render() {
749
749
  const { props } = this;
750
750
  let { suggestions, inputValue = "" } = this.state;
751
- const inputProps = Object.assign(Object.assign({ id: this.props.id, value: inputValue, readonly: props.readonly, disabled: props.disabled, placeholder: props.placeholder }, (this.props.inputProps || {})), { onChange: this.onInputChange, onBlur: this.onBlur, onFocus: this.onFocus, autoComplete: "off" });
751
+ const inputProps = Object.assign(Object.assign({ id: this.props.id, value: inputValue, disabled: props.disabled || props.readonly, placeholder: props.placeholder }, (this.props.inputProps || {})), { onChange: this.onInputChange, onBlur: this.onBlur, onFocus: this.onFocus, autoComplete: "off" });
752
752
  let cssClasses = {
753
753
  suggestionsContainer: "rw-popup-container rw-popup-transition",
754
754
  suggestionsContainerOpen: "rw-popup",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luomus/laji-form",
3
- "version": "15.1.32",
3
+ "version": "15.1.33",
4
4
  "description": "React module capable of building dynamic forms from Laji form json schemas",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",