From b71a3e17fdf25085cd1ac8aa16c94327b3471f46 Mon Sep 17 00:00:00 2001 From: Michel Date: Wed, 5 Jun 2019 13:36:55 +0200 Subject: [PATCH] fix for native iOS dropdown otherwise the native dropdown will be empty --- src/selectr.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/selectr.js b/src/selectr.js index 17f6e9c..de6d8b0 100644 --- a/src/selectr.js +++ b/src/selectr.js @@ -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);