1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-03-22 19:38:55 +01:00

Making a more unique React key for words did indeed make open edit forms correctly go away when switching dictionaries.

This commit is contained in:
Robbie Antenesse 2016-09-24 17:26:17 -06:00
parent c6605b46fc
commit e20395b642

View file

@ -10,7 +10,7 @@ export class Dictionary extends React.Component {
showWords() {
let words = this.props.words.map((word) => {
return <Word key={'dictionaryEntry' + word.wordId.toString()} isEditing={true}
return <Word key={'d:' + this.props.details.name + this.props.details.externalID.toString() + 'w:' + word.wordId.toString()} isEditing={true}
name={word.name}
pronunciation={word.pronunciation}
partOfSpeech={word.partOfSpeech}