{"action":"opened","issue":{"url":"https://api.github.com/repos/surmon-china/vue-awesome-swiper/issues/407","repository_url":"https://api.github.com/repos/surmon-china/vue-awesome-swiper","labels_url":"https://api.github.com/repos/surmon-china/vue-awesome-swiper/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/surmon-china/vue-awesome-swiper/issues/407/comments","events_url":"https://api.github.com/repos/surmon-china/vue-awesome-swiper/issues/407/events","html_url":"https://github.com/surmon-china/vue-awesome-swiper/issues/407","id":357836663,"node_id":"MDU6SXNzdWUzNTc4MzY2NjM=","number":407,"title":"Unable to update allowSlideNext param?","user":{"login":"maximelebreton","id":1072425,"node_id":"MDQ6VXNlcjEwNzI0MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1072425?v=4","gravatar_id":"","url":"https://api.github.com/users/maximelebreton","html_url":"https://github.com/maximelebreton","followers_url":"https://api.github.com/users/maximelebreton/followers","following_url":"https://api.github.com/users/maximelebreton/following{/other_user}","gists_url":"https://api.github.com/users/maximelebreton/gists{/gist_id}","starred_url":"https://api.github.com/users/maximelebreton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximelebreton/subscriptions","organizations_url":"https://api.github.com/users/maximelebreton/orgs","repos_url":"https://api.github.com/users/maximelebreton/repos","events_url":"https://api.github.com/users/maximelebreton/events{/privacy}","received_events_url":"https://api.github.com/users/maximelebreton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-06T21:36:12Z","updated_at":"2018-09-06T21:36:12Z","closed_at":null,"author_association":"NONE","body":"Hello.\r\n\r\nI want to set `allowSlideNext` to `false` on condition, but it doesn't work, and I don't understan why:\r\n\r\n```vue\r\n<swiper ref=\"mySwiper\" @slideChange=\"onSlideChange\"></swiper>\r\n```\r\n\r\n```javascript\r\nmethods: {\r\n  onSlideChange() {\r\n    if (this.$refs.mySwiper.swiper.snapIndex == this.$refs.mySwiper.swiper.slides.length - 1) {\r\n      this.$refs.mySwiper.allowSlideNext = false\r\n      this.$refs.mySwiper.update()\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nhttps://jsfiddle.net/b2jvgt69/\r\n\r\nAny ideas?"}}
{"actor":{"display_login":"maximelebreton"}}