Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit 9ce7a1c

Browse files
committed
Merge branch 'master' of github.com:dooly-ai/draft-js-typeahead
2 parents a475e52 + a20cba6 commit 9ce7a1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Justin Vaillancourt <justin@doolynoted.com>
3+
Copyright (c) 2016 Justin Vaillancourt <justin@dooly.ai>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ import { TypeaheadEditor } from 'draft-js-typeahead';
3030

3131
`TypeaheadEditor` is a react component that wraps draft's `Editor` and subsequently supports all of the same properties as the latter, as well as a few others.
3232

33-
`onTypeaheadChange => (typeaheadState)`:
33+
##### `onTypeaheadChange => (typeaheadState)`:
3434

3535
This method is called when the typeahead's visibility, position, or text changes. `typeaheadState` is an object with `left`, `top`, `text`, and `selectedIndex` properties - everything you need to know to render your typeahead. Typically you'd store the typeahead's state on your own component and use that in your component's `render()` method to position and display an overlay.
3636

37-
`handleTypeaheadReturn => (text, selectedIndex, selection)`:
37+
##### `handleTypeaheadReturn => (text, selectedIndex, selection)`:
3838

3939
This method is called when the typeahead's value is locked in by the user hitting return. This is where you'd autocomplete the selection and tag it with an entity, if wanted.
4040

41-
*Note that by default `draft-js-typeahead` does not help with filtering items in the typeahead based on the entered text, for a sample of how to do that please take a look at the mentions example.*
41+
*Note that by default `draft-js-typeahead` does not help with filtering items in the typeahead based on the entered text, for an example on how to do that please take a look at the mentions example.*
4242

4343
## License
4444

0 commit comments

Comments
 (0)