Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Disabled state when no country is selected (#48). #53

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed: Disabled state when no country is selected (#48).
  • Loading branch information
ravilodhi committed Nov 30, 2023
commit 4574e6cd8c1c3d51395c7cf2248982bb07e5c91d
2 changes: 1 addition & 1 deletion src/components/FacilityAddressModal.vue
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@
</ion-item>
<ion-item @keyup.enter.stop>
<ion-label position="floating">{{ translate("State") }}</ion-label>
<ion-select interface="popover" :placeholder="translate('Select')" v-model="address.stateProvinceGeoId">
<ion-select interface="popover" :disabled="!address.countryGeoId" :placeholder="translate('Select')" v-model="address.stateProvinceGeoId">
<ion-select-option v-for="state in states[address.countryGeoId]" :key="state.geoId" :value="state.geoId">{{ state.geoName }}</ion-select-option>
</ion-select>
</ion-item>
2 changes: 1 addition & 1 deletion src/views/AddFacilityAddress.vue
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@
<ion-label position="floating">
{{ translate('State') }}
</ion-label>
<ion-select interface="popover" :placeholder="translate('Select state')" v-model="formData.stateProvinceGeoId">
<ion-select interface="popover" :disabled="!formData.countryGeoId" :placeholder="translate('Select state')" v-model="formData.stateProvinceGeoId">
<ion-select-option v-for="state in states[formData.countryGeoId]" :key="state.geoId" :value="state.geoId">
{{ state.geoName }}
</ion-select-option>
Loading