react-bootstrap-front 3.9.5 → 3.9.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-bootstrap-front",
3
- "version": "3.9.5",
3
+ "version": "3.9.6",
4
4
  "description": "React Bootstrap Components",
5
5
  "keywords": [
6
6
  "Bootstrap 4",
@@ -23,7 +23,7 @@ export const InputText = props => {
23
23
  )}
24
24
  id={myId}
25
25
  name={props.name}
26
- value={props.value || ''}
26
+ value={props.value === null ? '' : props.value}
27
27
  required={props.required}
28
28
  disabled={props.disabled || props.locked}
29
29
  onBlur={props.onBlur}
@@ -7,7 +7,6 @@ import { Editor } from 'react-draft-wysiwyg';
7
7
  import { convertToHTML, convertFromHTML } from 'draft-convert';
8
8
  import { htmlToString } from '../helpers';
9
9
  import { ColorPicker, Inline, FontSize, FontFamily, Image, MailMerge as MailMergeOption } from './';
10
- import '../../../node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
11
10
 
12
11
  const myStyle = {
13
12
  height: 'auto',
@@ -6,7 +6,7 @@ export const DefaultHeader = props => (
6
6
  <div className="inline-list-default-header bg-secondary-light">
7
7
  <div className="row row-title row-line no-gutters text-secondary" key="inline-list-default-header">
8
8
  {props.cols.map((oneCol, i) => {
9
- return <DefaultTitleCol {...props} col={oneCol} idx={i} />;
9
+ return <DefaultTitleCol key={`herd-${oneCol.name}`} {...props} col={oneCol} idx={i} />;
10
10
  })}
11
11
  {props.onAddOne && (
12
12
  <div className="actions-buttons">
@@ -114,7 +114,7 @@ export default class DefaultLine extends Component {
114
114
  if (!oneCol.hidden) {
115
115
  const line = { ...oneCol, id: this.props.id };
116
116
  const content = getObjectmemberValue(this.props.item, oneCol.col);
117
- return <DefaultCol {...line} content={content} item={this.props.item} selectable={false} />;
117
+ return <DefaultCol key={`col-${oneCol.name}`} {...line} content={content} item={this.props.item} selectable={false} />;
118
118
  }
119
119
  return null;
120
120
  })}
@@ -21,16 +21,15 @@ export const DefaultList = props => {
21
21
  previous = item;
22
22
  if (myBreak !== false) {
23
23
  return (
24
- <>
24
+ <div key={item.id}>
25
25
  <DefaultLineBreak label={myBreak} counter={props.oddEven ? counter++ : 0}/>
26
26
  <DefaultLine
27
- {...props}
28
- key={item.id}
29
- id={item.id}
30
- item={item}
31
- counter={props.oddEven ? counter++ : 0}
32
- />
33
- </>
27
+ {...props}
28
+ id={item.id}
29
+ item={item}
30
+ counter={props.oddEven ? counter++ : 0}
31
+ />
32
+ </div>
34
33
  );
35
34
  } else {
36
35
  return (