File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -231,10 +231,15 @@ export default baseMixins.extend<options>().extend({
231231 mounted ( ) {
232232 // #11533
233233 this . $watch ( ( ) => this . labelValue , this . setLabelWidth )
234-
235234 this . autofocus && this . tryAutofocus ( )
236-
237- requestAnimationFrame ( ( ) => ( this . isBooted = true ) )
235+ requestAnimationFrame ( ( ) => {
236+ this . isBooted = true
237+ requestAnimationFrame ( ( ) => {
238+ if ( ! this . isIntersecting ) {
239+ this . onResize ( )
240+ }
241+ } )
242+ } )
238243 } ,
239244
240245 methods : {
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ export default function intersectable (options: { onVisible: string[] }) {
1111 return Vue . extend ( {
1212 name : 'intersectable' ,
1313
14+ data : ( ) => ( {
15+ isIntersecting : false ,
16+ } ) ,
17+
1418 mounted ( ) {
1519 Intersect . inserted ( this . $el as HTMLElement , {
1620 name : 'intersect' ,
@@ -27,6 +31,8 @@ export default function intersectable (options: { onVisible: string[] }) {
2731
2832 methods : {
2933 onObserve ( entries : IntersectionObserverEntry [ ] , observer : IntersectionObserver , isIntersecting : boolean ) {
34+ this . isIntersecting = isIntersecting
35+
3036 if ( ! isIntersecting ) return
3137
3238 for ( let i = 0 , length = options . onVisible . length ; i < length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments