mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-10-31 08:11:16 +01:00 
			
		
		
		
	Merge pull request #3516 from matrix-org/t3chguy/clean_out_useless_errors
Cull some easily fixable errors which make the console a mess
This commit is contained in:
		
						commit
						06c612ba3d
					
				| @ -61,7 +61,7 @@ export function showGroupAddRoomDialog(groupId) { | |||||||
|         </div>; |         </div>; | ||||||
| 
 | 
 | ||||||
|         const checkboxContainer = <label className="mx_GroupAddressPicker_checkboxContainer"> |         const checkboxContainer = <label className="mx_GroupAddressPicker_checkboxContainer"> | ||||||
|             <input type="checkbox" onClick={onCheckboxClicked} /> |             <input type="checkbox" onChange={onCheckboxClicked} /> | ||||||
|             <div> |             <div> | ||||||
|                 { _t("Show these rooms to non-members on the community page and room list?") } |                 { _t("Show these rooms to non-members on the community page and room list?") } | ||||||
|             </div> |             </div> | ||||||
|  | |||||||
| @ -409,10 +409,6 @@ export default createReactClass({ | |||||||
|         groupIsNew: PropTypes.bool, |         groupIsNew: PropTypes.bool, | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|     childContextTypes: { |  | ||||||
|         groupStore: PropTypes.instanceOf(GroupStore), |  | ||||||
|     }, |  | ||||||
| 
 |  | ||||||
|     getInitialState: function() { |     getInitialState: function() { | ||||||
|         return { |         return { | ||||||
|             summary: null, |             summary: null, | ||||||
|  | |||||||
| @ -319,7 +319,7 @@ export const TermsAuthEntry = createReactClass({ | |||||||
| 
 | 
 | ||||||
|             checkboxes.push( |             checkboxes.push( | ||||||
|                 <label key={"policy_checkbox_" + policy.id} className="mx_InteractiveAuthEntryComponents_termsPolicy"> |                 <label key={"policy_checkbox_" + policy.id} className="mx_InteractiveAuthEntryComponents_termsPolicy"> | ||||||
|                     <input type="checkbox" onClick={() => this._togglePolicy(policy.id)} checked={checked} /> |                     <input type="checkbox" onChange={() => this._togglePolicy(policy.id)} checked={checked} /> | ||||||
|                     <a href={policy.url} target="_blank" rel="noopener">{ policy.name }</a> |                     <a href={policy.url} target="_blank" rel="noopener">{ policy.name }</a> | ||||||
|                 </label>, |                 </label>, | ||||||
|             ); |             ); | ||||||
|  | |||||||
| @ -104,7 +104,7 @@ export default class ModularServerConfig extends ServerConfig { | |||||||
|                         </a>, |                         </a>, | ||||||
|                     }, |                     }, | ||||||
|                 )} |                 )} | ||||||
|                 <form onSubmit={this.onSubmit} autoComplete={false} action={null}> |                 <form onSubmit={this.onSubmit} autoComplete="off" action={null}> | ||||||
|                     <div className="mx_ServerConfig_fields"> |                     <div className="mx_ServerConfig_fields"> | ||||||
|                         <Field id="mx_ServerConfig_hsUrl" |                         <Field id="mx_ServerConfig_hsUrl" | ||||||
|                             label={_t("Server Name")} |                             label={_t("Server Name")} | ||||||
|  | |||||||
| @ -279,7 +279,7 @@ export default class ServerConfig extends React.PureComponent { | |||||||
|                 {errorText} |                 {errorText} | ||||||
|                 {this._renderHomeserverSection()} |                 {this._renderHomeserverSection()} | ||||||
|                 {this._renderIdentityServerSection()} |                 {this._renderIdentityServerSection()} | ||||||
|                 <form onSubmit={this.onSubmit} autoComplete={false} action={null}> |                 <form onSubmit={this.onSubmit} autoComplete="off" action={null}> | ||||||
|                     {submitButton} |                     {submitButton} | ||||||
|                 </form> |                 </form> | ||||||
|             </div> |             </div> | ||||||
|  | |||||||
| @ -153,7 +153,7 @@ export default class ShareDialog extends React.Component { | |||||||
|                     <input type="checkbox" |                     <input type="checkbox" | ||||||
|                            id="mx_ShareDialog_checkbox" |                            id="mx_ShareDialog_checkbox" | ||||||
|                            checked={this.state.linkSpecificEvent} |                            checked={this.state.linkSpecificEvent} | ||||||
|                            onClick={this.onLinkSpecificEventCheckboxClick} /> |                            onChange={this.onLinkSpecificEventCheckboxClick} /> | ||||||
|                     <label htmlFor="mx_ShareDialog_checkbox"> |                     <label htmlFor="mx_ShareDialog_checkbox"> | ||||||
|                         { _t('Link to most recent message') } |                         { _t('Link to most recent message') } | ||||||
|                     </label> |                     </label> | ||||||
|  | |||||||
| @ -120,7 +120,7 @@ export default class EditableItemList extends React.Component { | |||||||
| 
 | 
 | ||||||
|     _renderNewItemField() { |     _renderNewItemField() { | ||||||
|         return ( |         return ( | ||||||
|             <form onSubmit={this._onItemAdded} autoComplete={false} |             <form onSubmit={this._onItemAdded} autoComplete="off" | ||||||
|                   noValidate={true} className="mx_EditableItemList_newItem"> |                   noValidate={true} className="mx_EditableItemList_newItem"> | ||||||
|                 <Field id={`mx_EditableItemList_new_${this.props.id}`} label={this.props.placeholder} type="text" |                 <Field id={`mx_EditableItemList_new_${this.props.id}`} label={this.props.placeholder} type="text" | ||||||
|                        autoComplete="off" value={this.props.newItem || ""} onChange={this._onNewItemChanged} /> |                        autoComplete="off" value={this.props.newItem || ""} onChange={this._onNewItemChanged} /> | ||||||
|  | |||||||
| @ -181,7 +181,7 @@ module.exports = createReactClass({ | |||||||
|                             <input type="radio" |                             <input type="radio" | ||||||
|                                 value="public" |                                 value="public" | ||||||
|                                 checked={this.state.groupRoom.isPublic} |                                 checked={this.state.groupRoom.isPublic} | ||||||
|                                 onClick={this._changeGroupRoomPublicity} |                                 onChange={this._changeGroupRoomPublicity} | ||||||
|                             /> |                             /> | ||||||
|                             <div className="mx_MemberInfo_label_text"> |                             <div className="mx_MemberInfo_label_text"> | ||||||
|                                 { _t('Visible to everyone') } |                                 { _t('Visible to everyone') } | ||||||
| @ -193,7 +193,7 @@ module.exports = createReactClass({ | |||||||
|                             <input type="radio" |                             <input type="radio" | ||||||
|                                 value="private" |                                 value="private" | ||||||
|                                 checked={!this.state.groupRoom.isPublic} |                                 checked={!this.state.groupRoom.isPublic} | ||||||
|                                 onClick={this._changeGroupRoomPublicity} |                                 onChange={this._changeGroupRoomPublicity} | ||||||
|                             /> |                             /> | ||||||
|                             <div className="mx_MemberInfo_label_text"> |                             <div className="mx_MemberInfo_label_text"> | ||||||
|                                 { _t('Only visible to community members') } |                                 { _t('Only visible to community members') } | ||||||
|  | |||||||
| @ -177,7 +177,7 @@ export default class RoomProfileSettings extends React.Component { | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return ( |         return ( | ||||||
|             <form onSubmit={this._saveProfile} autoComplete={false} noValidate={true}> |             <form onSubmit={this._saveProfile} autoComplete="off" noValidate={true}> | ||||||
|                 <input type="file" ref="avatarUpload" className="mx_ProfileSettings_avatarUpload" |                 <input type="file" ref="avatarUpload" className="mx_ProfileSettings_avatarUpload" | ||||||
|                        onChange={this._onAvatarChanged} accept="image/*" /> |                        onChange={this._onAvatarChanged} accept="image/*" /> | ||||||
|                 <div className="mx_ProfileSettings_profile"> |                 <div className="mx_ProfileSettings_profile"> | ||||||
|  | |||||||
| @ -81,7 +81,7 @@ export default class DevicesPanelEntry extends React.Component { | |||||||
|                     { lastSeen } |                     { lastSeen } | ||||||
|                 </div> |                 </div> | ||||||
|                 <div className="mx_DevicesPanel_deviceButtons"> |                 <div className="mx_DevicesPanel_deviceButtons"> | ||||||
|                     <input type="checkbox" onClick={this.onDeviceToggled} checked={this.props.selected} /> |                     <input type="checkbox" onChange={this.onDeviceToggled} checked={this.props.selected} /> | ||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> | ||||||
|         ); |         ); | ||||||
|  | |||||||
| @ -155,7 +155,7 @@ export default class ProfileSettings extends React.Component { | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return ( |         return ( | ||||||
|             <form onSubmit={this._saveProfile} autoComplete={false} noValidate={true}> |             <form onSubmit={this._saveProfile} autoComplete="off" noValidate={true}> | ||||||
|                 <input type="file" ref="avatarUpload" className="mx_ProfileSettings_avatarUpload" |                 <input type="file" ref="avatarUpload" className="mx_ProfileSettings_avatarUpload" | ||||||
|                        onChange={this._onAvatarChanged} accept="image/*" /> |                        onChange={this._onAvatarChanged} accept="image/*" /> | ||||||
|                 <div className="mx_ProfileSettings_profile"> |                 <div className="mx_ProfileSettings_profile"> | ||||||
|  | |||||||
| @ -229,7 +229,7 @@ export default class EmailAddresses extends React.Component { | |||||||
|         return ( |         return ( | ||||||
|             <div className="mx_EmailAddresses"> |             <div className="mx_EmailAddresses"> | ||||||
|                 {existingEmailElements} |                 {existingEmailElements} | ||||||
|                 <form onSubmit={this._onAddClick} autoComplete={false} |                 <form onSubmit={this._onAddClick} autoComplete="off" | ||||||
|                       noValidate={true} className="mx_EmailAddresses_new"> |                       noValidate={true} className="mx_EmailAddresses_new"> | ||||||
|                     <Field id="mx_EmailAddressses_newEmailAddress" |                     <Field id="mx_EmailAddressses_newEmailAddress" | ||||||
|                         type="text" |                         type="text" | ||||||
|  | |||||||
| @ -231,7 +231,7 @@ export default class PhoneNumbers extends React.Component { | |||||||
|                         <br /> |                         <br /> | ||||||
|                         {this.state.verifyError} |                         {this.state.verifyError} | ||||||
|                     </div> |                     </div> | ||||||
|                     <form onSubmit={this._onContinueClick} autoComplete={false} noValidate={true}> |                     <form onSubmit={this._onContinueClick} autoComplete="off" noValidate={true}> | ||||||
|                         <Field id="mx_PhoneNumbers_newPhoneNumberCode" |                         <Field id="mx_PhoneNumbers_newPhoneNumberCode" | ||||||
|                             type="text" |                             type="text" | ||||||
|                             label={_t("Verification code")} |                             label={_t("Verification code")} | ||||||
| @ -260,8 +260,7 @@ export default class PhoneNumbers extends React.Component { | |||||||
|         return ( |         return ( | ||||||
|             <div className="mx_PhoneNumbers"> |             <div className="mx_PhoneNumbers"> | ||||||
|                 {existingPhoneElements} |                 {existingPhoneElements} | ||||||
|                 <form onSubmit={this._onAddClick} autoComplete={false} |                 <form onSubmit={this._onAddClick} autoComplete="off" noValidate={true} className="mx_PhoneNumbers_new"> | ||||||
|                       noValidate={true} className="mx_PhoneNumbers_new"> |  | ||||||
|                     <div className="mx_PhoneNumbers_input"> |                     <div className="mx_PhoneNumbers_input"> | ||||||
|                         <Field id="mx_PhoneNumbers_newPhoneNumber" |                         <Field id="mx_PhoneNumbers_newPhoneNumber" | ||||||
|                             type="text" |                             type="text" | ||||||
|  | |||||||
| @ -207,11 +207,7 @@ export class PhoneNumber extends React.Component { | |||||||
|                     <br /> |                     <br /> | ||||||
|                     {this.state.verifyError} |                     {this.state.verifyError} | ||||||
|                 </span> |                 </span> | ||||||
|                 <form |                 <form onSubmit={this.onContinueClick} autoComplete="off" noValidate={true}> | ||||||
|                     onSubmit={this.onContinueClick} |  | ||||||
|                     autoComplete={false} |  | ||||||
|                     noValidate={true} |  | ||||||
|                 > |  | ||||||
|                     <Field id="mx_PhoneNumbers_newPhoneNumberCode" |                     <Field id="mx_PhoneNumbers_newPhoneNumberCode" | ||||||
|                         type="text" |                         type="text" | ||||||
|                         label={_t("Verification code")} |                         label={_t("Verification code")} | ||||||
|  | |||||||
| @ -156,7 +156,7 @@ export default class NotificationsSettingsTab extends React.Component { | |||||||
|                     </div> |                     </div> | ||||||
|                     <div> |                     <div> | ||||||
|                         <h3>{_t("Set a new custom sound")}</h3> |                         <h3>{_t("Set a new custom sound")}</h3> | ||||||
|                         <form autoComplete={false} noValidate={true}> |                         <form autoComplete="off" noValidate={true}> | ||||||
|                             <input ref="soundUpload" className="mx_NotificationSound_soundUpload" type="file" onChange={this._onSoundUploadChanged.bind(this)} accept="audio/*" /> |                             <input ref="soundUpload" className="mx_NotificationSound_soundUpload" type="file" onChange={this._onSoundUploadChanged.bind(this)} accept="audio/*" /> | ||||||
|                         </form> |                         </form> | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user