Skip to content

Commit

Permalink
add popper class
Browse files Browse the repository at this point in the history
  • Loading branch information
Bellardia committed Nov 24, 2018
1 parent b9c5f4c commit ac995a4
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 2,266 deletions.
1,134 changes: 5 additions & 1,129 deletions dist/elTelInput.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elTelInput.common.js.map

Large diffs are not rendered by default.

1,134 changes: 5 additions & 1,129 deletions dist/elTelInput.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elTelInput.umd.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/elTelInput.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elTelInput.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jumbleberry/el-tel-input",
"version": "1.0.4",
"version": "1.0.5",
"private": true,
"main": "./dist/elTelInput.common.js",
"homepage": "https://github.com/Jumbleberry/el-tel-input/",
Expand Down
5 changes: 3 additions & 2 deletions src/components/ElTelInput.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="el-tel-input">
<el-input :placeholder="placeholder" :value="nationalNumber" @input="handleNationalNumberInput" class="input-with-select">
<el-select :value="country" @input="handleCountryCodeInput" filterable :filter-method="handleFilterCountries" slot="prepend" popper-class="el-tel-input__dropdown" placeholder="Country">
<el-select :value="country" @input="handleCountryCodeInput" filterable :filter-method="handleFilterCountries" slot="prepend" :popper-class="popperClass + ' el-tel-input__dropdown'" placeholder="Country">
<el-flagged-label slot="prefix" v-if="selectedCountry" :country="selectedCountry" :show-name="false"></el-flagged-label>
<el-option v-for="country in filteredCountries" :key="country.iso2" :value="country.iso2" :label="`+${country.dialCode}`" :default-first-option="true">
<el-flagged-label :country="country"></el-flagged-label>
Expand Down Expand Up @@ -47,7 +47,8 @@ export default {
placeholder: {
type: String,
default: 'Phone Number'
}
},
popperClass
},
data() {
const parsedPhoneNumber = getParsedPhoneNumber(this.value, '');
Expand Down

0 comments on commit ac995a4

Please sign in to comment.