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

新竹市東區、北區、香山區郵遞區號一樣,因此會有 bug #21

Open
howtomakeaturn opened this issue May 12, 2018 · 1 comment

Comments

@howtomakeaturn
Copy link

如題

在 data-role="district" 的地方塞入 data-value="北區" 時會有 bug,顯示為東區而非北區

嘉義市東區、西區也有同樣問題

@howtomakeaturn
Copy link
Author

將這一行的 blur 事件拿掉可以解決這個 issue

https://github.com/essoduke/jQuery-TWzipcode/blob/master/jquery.twzipcode.js#L370

wrap.zipcode.on('keyup.twzipcode blur.twzipcode', function () {

變成

wrap.zipcode.on('keyup.twzipcode', function () {

聽起來如何?當初留 blur 事件是針對什麼情境嗎?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant