Skip to content

Commit

Permalink
Fixed order of initialisation issue with dropdown binding
Browse files Browse the repository at this point in the history
Would attempt to set the selection option before options had been initialised.
  • Loading branch information
RoryDungan committed Jan 29, 2018
1 parent 71b7534 commit 54f3cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnityWeld/Binding/DropdownBinding.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
Expand Down Expand Up @@ -126,8 +126,8 @@ public override void Connect()
);

// Copy the initial value from view-model to view.
selectionPropertySync.SyncFromSource();
optionsPropertySync.SyncFromSource();
selectionPropertySync.SyncFromSource();
UpdateOptions();
}

Expand Down

0 comments on commit 54f3cae

Please sign in to comment.