@kizmann/nano-ui 0.7.29 → 0.8.0

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": "@kizmann/nano-ui",
3
- "version": "0.7.29",
3
+ "version": "0.8.0",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -97,9 +97,10 @@ export default {
97
97
 
98
98
  onSubmit(event)
99
99
  {
100
- console.log('hmm', event.which);
101
- event.preventDefault();
102
- event.stopPropagation();
100
+ if ( this.prevent ) {
101
+ event.preventDefault();
102
+ event.stopPropagation();
103
+ }
103
104
 
104
105
  if ( Dom.find(event.target).is('input') ) {
105
106
  this.$emit('submit', event);
@@ -135,7 +135,7 @@ export default {
135
135
  return;
136
136
  }
137
137
 
138
- this.NForm.onSubmit();
138
+ this.NForm.onSubmit(event);
139
139
  },
140
140
 
141
141
  onFocus(event)