ywana-core8 0.0.822 → 0.0.824

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": "ywana-core8",
3
- "version": "0.0.822",
3
+ "version": "0.0.824",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -511,8 +511,12 @@ export const CollectionContext = (url, field, host, page, fetching, versioning =
511
511
  async create(form) {
512
512
  try {
513
513
  if (versioning) form.version = 1
514
- await API.create(form);
514
+ const response = await API.create(form);
515
515
  await this.load();
516
+ if (response) {
517
+ const { id } = response;
518
+ if (id) this.select(id)
519
+ }
516
520
  } catch (error) {
517
521
  console.log(error)
518
522
  }
@@ -54,7 +54,7 @@ export const TextField = (props) => {
54
54
 
55
55
  return (
56
56
  <div className={`${style} ${id}`} onClick={onClick}>
57
- <input id={id} type={type} placeholder={placeholder} value={value} required onChange={change} onKeyDown={onKeyPress} onFocus={focus} onBlur={blur} readOnly={readOnly} step="any"} />
57
+ <input id={id} type={type} placeholder={placeholder} value={value} required onChange={change} onKeyDown={onKeyPress} onFocus={focus} onBlur={blur} readOnly={readOnly} step="any" />
58
58
  {readOnly === false && canClear && value && value.length > 0 ? <Icon icon="close" clickable size="small" action={clear} /> : null}
59
59
  <span className="bar"></span>
60
60
  {label ? <label>{labelTxt}</label> : null}