Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix a couple of bugs with EditableItemList #1445

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

lukebarnard1
Copy link
Contributor

  • fix entering the same thing twice (which had the bug of not emptying the "new" field)
  • fix editing items in the list (which would stack overflow because of typo)

 - fix entering the same thing twice (which had the bug of not emptying the "new" field)
 - fix editing items in the list (which would stack overflow because of typo)
@dbkr dbkr assigned lukebarnard1 and unassigned dbkr Oct 4, 2017
@lukebarnard1 lukebarnard1 merged commit 9f39a15 into develop Oct 4, 2017
lukebarnard1 added a commit that referenced this pull request Jun 28, 2018
This reverts a fix to EditableText introduced in
    #1445
which introduced a bug that causes room name and topic to
reset when UserSettings is rerendered because
    `initialValue != this.value`

This also fixes the same bug originally fixed by #1445:
 >fix entering the same thing twice (which had the bug of not
 >emptying the "new" field)

which, in other words meant that clicking "+" when adding a room
alias would not reset the contents of the bottom-most alias in the
list.

The fix is to increment the `key` of the element, causing a new
instance to be mounted instead of passing new props to the existing
one.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants