diff --git a/kivyblocks/widgetExt/inputext.py b/kivyblocks/widgetExt/inputext.py index 35d278f..e95a87c 100755 --- a/kivyblocks/widgetExt/inputext.py +++ b/kivyblocks/widgetExt/inputext.py @@ -172,13 +172,15 @@ class MyDropDown(DropDown): def getTextByValue(self,v): for d in self.si_data: if d[self.valueField] == v: - return d[self.textField] + r = d[self.textField] + return r if r else v return str(v) def getValueByText(self,v): for d in self.si_data: - if d[self.textField] == v: - return d[self.valueField] + if d[self.textField] == v: + r = d[self.valueField] + return r return '' def setData(self,data):