Skip to content

Commit a72a54f

Browse files
committed
fix(taiwan): default <option> 加上 value
1 parent 7912d83 commit a72a54f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/views/templates/selects.js.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Gaia5FPRO.generate_selects = function(random_id) {
8585
});
8686

8787
dist.on('reset', function() {
88-
dist.html('<option>請選擇鄉鎮區</option>')
88+
dist.html('<option value>請選擇鄉鎮區</option>')
8989
});
9090

9191
dist.on('change', function() {
@@ -95,7 +95,7 @@ Gaia5FPRO.generate_selects = function(random_id) {
9595
});
9696

9797
// insert city select
98-
city.append('<option>請選擇城市</option>')
98+
city.append('<option value>請選擇城市</option>')
9999
dist.trigger('reset');
100100
data.forEach(function(cell) {
101101
var city_name = cell.city.name;

public/dist/taiwan.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)