From fe6604140e13b07c177d170d0a2650309e17470b Mon Sep 17 00:00:00 2001 From: damon Date: Thu, 18 Dec 2014 06:04:30 +1100 Subject: [PATCH] added handler for properties change that updates the combo items. --- src/js/Combobox.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/Combobox.jsx b/src/js/Combobox.jsx index c22e339..9c38a9a 100644 --- a/src/js/Combobox.jsx +++ b/src/js/Combobox.jsx @@ -214,6 +214,10 @@ NS.Combobox = (function(React) { } }, + componentWillReceiveProps: function(nextProps) { + this.setData(nextProps.data); + }, + // Custom component methods // Private _timerId: null,