diff --git a/src/DataListInput.jsx b/src/DataListInput.jsx index 956706c..b6c4807 100644 --- a/src/DataListInput.jsx +++ b/src/DataListInput.jsx @@ -252,7 +252,7 @@ class DataListInput extends React.Component { { item.label.substr( indexOfMatch, currentInput.length ) } - { item.label.substr( currentInput.length, item.label.length ) } + { item.label.substr( indexOfMatch + currentInput.length, item.label.length ) } );