You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, thanks for the fantastic plugin. I get a lot of use out of it, and I'm happy to see it so well-supported.
I noticed that the data-selectedtext attribute doesn't work on mobile. This is the case for the official example, so I'm confident the bug isn't an artifact of my implementation.
The issue appears to originate in the _updateMobileText function, on line 2945:
self._setText(self.dropdownText, currentText);
which doesn't contain any references to selectedText. I fixed it locally by first defining currentDataSelectedText inside of _updateMobileText, as it is elsewhere in the source code:
First off, thanks for the fantastic plugin. I get a lot of use out of it, and I'm happy to see it so well-supported.
I noticed that the
data-selectedtext
attribute doesn't work on mobile. This is the case for the official example, so I'm confident the bug isn't an artifact of my implementation.The issue appears to originate in the
_updateMobileText
function, on line 2945:self._setText(self.dropdownText, currentText);
which doesn't contain any references to
selectedText
. I fixed it locally by first definingcurrentDataSelectedText
inside of_updateMobileText
, as it is elsewhere in the source code:currentDataSelectedText = currentOption.attr("data-selectedtext");
And then by replacing the erroneous line 2945 with the following:
self._setText(self.dropdownText, currentDataSelectedText || currentText);
Thanks again!
The text was updated successfully, but these errors were encountered: