@kizmann/nano-ui 0.7.29 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
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.1",
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);
@@ -151,7 +152,7 @@ export default {
151
152
 
152
153
  ready()
153
154
  {
154
- this.$watch('form', this.emitChange, { deep: true });
155
+ this.$watch('form', Any.debounce(this.emitChange, 300), { deep: true });
155
156
  },
156
157
 
157
158
  render()
@@ -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)