diff --git a/package.json b/package.json index 9e7256d..0c57788 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-bulma-pagination", - "version": "1.1.3", + "version": "1.1.4", "description": "Pagination component for Vue Bulma", "main": "src/index.js", "peerDependencies": { diff --git a/src/Pagination.vue b/src/Pagination.vue index d064fb6..0198ff5 100644 --- a/src/Pagination.vue +++ b/src/Pagination.vue @@ -36,7 +36,7 @@ export default { methods: { getNavClassName () { var optional = ['','is-centered','is-right'] - if(['','is-centered','is-right'].indexOf(this.modifiers) > 0){ + if(['','is-centered','is-right'].indexOf(this.modifiers.trim()) >= 0){ return 'pagination ' + this.modifiers } else { console.warn(" modifiers %s is not within the options ", this.modifiers, optional,