Hello,
I am having a problem getting the date picker to work correctly when inside of a label element. The label element is tied to a specific radio button. The idea is that if the user switches focus to the date picker, we want that radio option to be automatically selected. Because it is doing this, the date picker quickly opens and then closes when clicked. I assume this is because the focus is being switched to the radio button, but I was able to do the same type of thing with a jQuery datepicker so I'm not sure if something else is going on.
Here is an example of the problem. If you click to open a date picker, it closes right away. If you change the label name tag from daterange to anything else, the problem goes away.
Any suggestions or ideas? Thanks in advance!
I am having a problem getting the date picker to work correctly when inside of a label element. The label element is tied to a specific radio button. The idea is that if the user switches focus to the date picker, we want that radio option to be automatically selected. Because it is doing this, the date picker quickly opens and then closes when clicked. I assume this is because the focus is being switched to the radio button, but I was able to do the same type of thing with a jQuery datepicker so I'm not sure if something else is going on.
Here is an example of the problem. If you click to open a date picker, it closes right away. If you change the label name tag from daterange to anything else, the problem goes away.
Any suggestions or ideas? Thanks in advance!