mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-12 09:29:56 +01:00
Fix renderMatchingLabel for indexOfMatch > 0
This commit is contained in:
parent
74e529122b
commit
4cca2f2305
@ -252,7 +252,7 @@ class DataListInput extends React.Component {
|
|||||||
<strong>
|
<strong>
|
||||||
{ item.label.substr( indexOfMatch, currentInput.length ) }
|
{ item.label.substr( indexOfMatch, currentInput.length ) }
|
||||||
</strong>
|
</strong>
|
||||||
{ item.label.substr( currentInput.length, item.label.length ) }
|
{ item.label.substr( indexOfMatch + currentInput.length, item.label.length ) }
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user