@bildvitta/quasar-ui-asteroid 3.13.0-beta.0 → 3.13.0-beta.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.13.0-beta.0",
4
+ "version": "3.13.0-beta.1",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -128,11 +128,13 @@ export default {
128
128
  },
129
129
 
130
130
  defaultOk () {
131
+ const { onClick, ...attrs } = this.ok
132
+
131
133
  return {
132
134
  label: 'Ok',
133
135
  type: this.ok?.type || this.useForm ? 'submit' : 'button',
134
136
 
135
- ...this.ok,
137
+ ...attrs,
136
138
 
137
139
  // adiciona somente se não estiver usando useForm pois o controle ficará no submit.
138
140
  ...(!this.useForm && { onClick: this.onOk })
@@ -22,7 +22,7 @@
22
22
  </template>
23
23
 
24
24
  <script setup>
25
- import { ref, computed, inject } from 'vue'
25
+ import { ref, computed, inject, nextTick } from 'vue'
26
26
  import { NotifyError } from '../../plugins'
27
27
 
28
28
  defineOptions({ name: 'QasInfiniteScroll' })
@@ -151,8 +151,10 @@ function refresh () {
151
151
 
152
152
  hasMadeFirstFetch.value = false
153
153
 
154
- infiniteScroll.value.reset()
155
- infiniteScroll.value.resume()
154
+ nextTick(() => {
155
+ infiniteScroll.value.reset()
156
+ infiniteScroll.value.resume()
157
+ })
156
158
  }
157
159
 
158
160
  function remove (index) {