Mar 13, 2019 03:13 AM|Jenifer Jiang|LINK
I've tested the code again on my side and it works well after refreshing the page.
I'd like to ask that if there are extra codes on your page. Maybe you have use Updatepanel and this may cause the issue.
If possible, please share your testing code and this will be easier to help with you.