Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

fix for native iOS dropdown otherwise the native dropdown will be empty #123

Merged
merged 1 commit into from
Jul 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/selectr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,11 @@

this.data.push(data);

// fix for native iOS dropdown otherwise the native dropdown will be empty
if (this.mobileDevice) {
this.el.add(option);
}

// Add the new option to the list
this.options.push(option);

Expand Down