client/users: stop native completion
Disabled for user registration and editing where it causes more mess than good.
This commit is contained in:
		
							parent
							
								
									fec31d7946
								
							
						
					
					
						commit
						124e871022
					
				@ -288,3 +288,7 @@ input[type=file]:focus+.file-dropper,
 | 
				
			|||||||
                    color: $button-enabled-text-color
 | 
					                    color: $button-enabled-text-color
 | 
				
			||||||
            .disabled
 | 
					            .disabled
 | 
				
			||||||
                color: $inactive-link-color
 | 
					                color: $inactive-link-color
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.anticomplete
 | 
				
			||||||
 | 
					    display: none
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,8 @@
 | 
				
			|||||||
<div id='user-edit'>
 | 
					<div id='user-edit'>
 | 
				
			||||||
    <form>
 | 
					    <form>
 | 
				
			||||||
 | 
					        <input class='anticomplete' type='text' name='fakeuser'/>
 | 
				
			||||||
 | 
					        <input class='anticomplete' type='password' name='fakepass'/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <ul class='input'>
 | 
					        <ul class='input'>
 | 
				
			||||||
            <% if (ctx.canEditName) { %>
 | 
					            <% if (ctx.canEditName) { %>
 | 
				
			||||||
                <li>
 | 
					                <li>
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,9 @@
 | 
				
			|||||||
<div class='content-wrapper' id='user-registration'>
 | 
					<div class='content-wrapper' id='user-registration'>
 | 
				
			||||||
    <h1>Registration</h1>
 | 
					    <h1>Registration</h1>
 | 
				
			||||||
    <form autocomplete='off'>
 | 
					    <form autocomplete='off'>
 | 
				
			||||||
 | 
					        <input class='anticomplete' type='text' name='fakeuser'/>
 | 
				
			||||||
 | 
					        <input class='anticomplete' type='password' name='fakepass'/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <div class='input'>
 | 
					        <div class='input'>
 | 
				
			||||||
            <ul>
 | 
					            <ul>
 | 
				
			||||||
                <li>
 | 
					                <li>
 | 
				
			||||||
 | 
				
			|||||||
@ -33,7 +33,9 @@ class UserEditView extends events.EventTarget {
 | 
				
			|||||||
        for (let node of this._formNode.querySelectorAll('input, select')) {
 | 
					        for (let node of this._formNode.querySelectorAll('input, select')) {
 | 
				
			||||||
            node.addEventListener(
 | 
					            node.addEventListener(
 | 
				
			||||||
                'change', e => {
 | 
					                'change', e => {
 | 
				
			||||||
                    this.dispatchEvent(new CustomEvent('change'));
 | 
					                    if (!e.target.classList.contains('anticomplete')) {
 | 
				
			||||||
 | 
					                        this.dispatchEvent(new CustomEvent('change'));
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user