Skip to content

Commit bedfbac

Browse files
committed
Resolves #1443, #1448. Fixes "The object does not support the property or method 'startsWith'".
1 parent a228866 commit bedfbac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Presentation/SmartStore.Web/Scripts/smartstore.selectwrapper.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@
208208
},
209209
closeOnSelect: !(sel.prop('multiple') || sel.data("tags")),
210210
adaptContainerCssClass: function (c) {
211-
if (c.startsWith("select-"))
211+
if (c.startsWith && c.startsWith("select-"))
212212
return c;
213213
else
214214
return null;
215215
},
216216
adaptDropdownCssClass: function (c) {
217-
if (c.startsWith("drop-"))
217+
if (c.startsWith && c.startsWith("drop-"))
218218
return c;
219219
else
220220
return null;

0 commit comments

Comments
 (0)