File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -112,17 +112,21 @@ export default Vue.extend({
112112 iconSet ( val ) {
113113 this . loadIconSet ( val )
114114 this . updatePagination ( )
115- // whenever the icon set changes, it resets pagination page to page 1
116- this . setPagination ( { page : 1 } )
115+ this . $nextTick ( ( ) => {
116+ // whenever the icon set changes, it resets pagination page to page 1
117+ this . setPagination ( { page : 1 } )
118+ } )
117119 } ,
118120
119121 icons ( val ) {
120122 if ( this . icons !== void 0 && this . icons . length > 0 ) {
121123 this . iconsList = this . icons
122124 }
123125 this . updatePagination ( )
124- // whenever the icons changes, it resets pagination page to page 1
125- this . setPagination ( { page : 1 } )
126+ this . $nextTick ( ( ) => {
127+ // whenever the icon set changes, it resets pagination page to page 1
128+ this . setPagination ( { page : 1 } )
129+ } )
126130 } ,
127131
128132 pagination ( newVal , oldVal ) {
You can’t perform that action at this time.
0 commit comments