Skip to content

Commit

Permalink
fix #178
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterStaev committed May 19, 2018
1 parent 1bf2177 commit 134c234
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ matrix:
language: android
os: linux
env:
- Android="25"
- Android="26"
jdk: oraclejdk8
before_install: nvm install 6.10.3
script: "grunt ci:build:android"
Expand All @@ -58,7 +58,7 @@ matrix:
language: android
os: linux
env:
- Android="25"
- Android="26"
- Platform="Android"
jdk: oraclejdk8
before_install: nvm install 6.10.3
Expand Down
6 changes: 5 additions & 1 deletion drop-down.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ export class DropDown extends DropDownBase {
}
public [selectedIndexProperty.setNative](value: number) {
if (value >= 0) {
this._listPicker.selectRowInComponentAnimated(value, 0, true);

// HACK to fix #178
setTimeout(() => {
this._listPicker.selectRowInComponentAnimated(value, 0, true);
}, 1);
}

this.ios.setText(this._getItemAsString(value));
Expand Down

0 comments on commit 134c234

Please sign in to comment.