|
|
@@ -81,6 +81,7 @@ const BusCustomFormWizard = (props) => { |
|
|
|
const [termsAndConAccept, setTermsAndConAccept] = useState(false); |
|
|
|
const [termsAndConNotAccept, setTermsAndConNotAccept] = useState(false); |
|
|
|
const [isValid, setisValid] = useState(false); |
|
|
|
const [checkCountry, setCheckCountry] = useState(false); |
|
|
|
|
|
|
|
const address4ComboList = |
|
|
|
["北區","長洲區","大埔區","大嶼山區","東區","觀塘區","黃大仙區","九龍城區","葵青區","南區","南丫島區", |
|
|
@@ -745,6 +746,7 @@ const BusCustomFormWizard = (props) => { |
|
|
|
id="address4-combo" |
|
|
|
value={selectedAddress4 === null ? null : selectedAddress4} |
|
|
|
options={address4ComboList} |
|
|
|
disabled={checkCountry} |
|
|
|
onChange={(event, newValue) => { |
|
|
|
if (newValue !== null){ |
|
|
|
setSelectedAddress4(newValue); |
|
|
@@ -762,6 +764,13 @@ const BusCustomFormWizard = (props) => { |
|
|
|
onChange={(event, newValue) => { |
|
|
|
if (newValue !== null){ |
|
|
|
setSelectedAddress5(newValue); |
|
|
|
if(newValue=='香港'){ |
|
|
|
setCheckCountry(false) |
|
|
|
}else{ |
|
|
|
setCheckCountry(true) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
setCheckCountry(true) |
|
|
|
} |
|
|
|
}} |
|
|
|
|
|
|
|