element-web/src/components/views
Luke Barnard 016e9176f6 Fix room topics/names reseting when UserSetting re-renders
This reverts a fix to EditableText introduced in
    https://github.com/matrix-org/matrix-react-sdk/pull/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.
2018-06-28 18:11:52 +01:00
..
avatars tell eslint to ignore viewAvatarOnClick being unused 2018-05-06 00:22:14 +01:00
context_menus use enum constants for EventStatus and correct isSent check 2018-06-23 17:41:50 +01:00
create_room Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
dialogs Merge pull request #2000 from matrix-org/t3chguy/deduplicate_address_picker 2018-06-21 14:07:52 +01:00
directory point imports at the new locations 2018-04-13 00:43:44 +01:00
elements Fix room topics/names reseting when UserSetting re-renders 2018-06-28 18:11:52 +01:00
globals fix a way to get stuck in set password/email flow 2018-06-18 18:14:48 +01:00
groups change GroupInviteTile from RoomSubList css so new :hover won't apply 2018-06-27 09:50:32 +01:00
login highlight top field if blank otherwise the password field. 2018-06-23 17:26:16 +01:00
messages Fix incorrectly positioned copy button on <pre> blocks 2018-06-27 11:31:55 +01:00
room_settings switch to another settings key for e2e url previews to protect on change 2018-06-22 18:44:54 +01:00
rooms Merge pull request #2016 from matrix-org/t3chguy/hide_empty_sublist 2018-06-26 18:26:29 +01:00
settings Merge pull request #1990 from matrix-org/t3chguy/no_displayname 2018-06-22 10:34:04 +01:00
voip missing semicolon 2018-02-07 11:51:41 +00:00