mirror of https://github.com/vector-im/riot-web
Trim spurious whitespace of "Explore rooms" menu input (#7431)
* Trim spurious whitespace of "Explore rooms" menu input Trims the whitespace around the input string in order to show relevant room suggestions and the "Join" button. Fixes https://github.com/vector-im/element-web/issues/19728 Signed-off by: Ingrid Budau inigiri@posteo.jp * Add safe navigation Co-authored-by: Travis Ralston <travpc@gmail.com> Co-authored-by: Travis Ralston <travpc@gmail.com>pull/21833/head
parent
cd04799cb4
commit
defbe16448
|
@ -393,7 +393,7 @@ export default class RoomDirectory extends React.Component<IProps, IState> {
|
|||
|
||||
private onFilterChange = (alias: string) => {
|
||||
this.setState({
|
||||
filterString: alias || "",
|
||||
filterString: alias?.trim() || "",
|
||||
});
|
||||
|
||||
// don't send the request for a little bit,
|
||||
|
|
Loading…
Reference in New Issue