ywana-core8 0.0.381 → 0.0.384

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.381",
3
+ "version": "0.0.384",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -21,11 +21,16 @@ export const Dialog = (props) => {
21
21
  }
22
22
  }
23
23
 
24
+ function prevent(e) {
25
+ e.preventDefault()
26
+ e.stopPropagation()
27
+ }
28
+
24
29
  return (
25
30
  <Fragment>
26
31
  <div className={`overlay ${className}`} />
27
32
  <div className={`dialog ${className}`} onClick={close}>
28
- <div className="dialog-panel">
33
+ <div className="dialog-panel" onClick={prevent}>
29
34
  <header>
30
35
  {icon ? <MenuIcon icon={icon} /> : null}
31
36
  <Text>{title}</Text>
@@ -34,7 +34,7 @@ export const UploadArea = (props) => {
34
34
  onDragLeave={onDragLeave}
35
35
  ref={areaElement}
36
36
  >
37
- <Icon icon={icon} clickable eventPropagation={false}/>
37
+ <Icon icon={icon} clickable eventPropagation={true}/>
38
38
  <label>{label}</label>
39
39
  </div>
40
40
  )
@@ -33,7 +33,7 @@ export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onC
33
33
 
34
34
  const title = <Text use="headline6">{label}</Text>
35
35
  return (
36
- <Dialog title={title} open={true} onAction={onAction} actions={actions} eventPropagation={true}>
36
+ <Dialog title={title} open={true} onAction={onAction} actions={actions}>
37
37
  <Uploader label={label} accept={accept} target={target} onSuccess={success} onComplete={complete} />
38
38
  </Dialog>
39
39
  )