Chrome autofill should set the form to validValidate decimal numbers in JavaScript - IsNumeric()How to validate an email address in JavaScriptWhich “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?Which equals operator (== vs ===) should be used in JavaScript comparisons?Setting “checked” for a checkbox with jQuery?Set a default parameter value for a JavaScript functionDisable same origin policy in ChromeDisabling Chrome cache for website developmentHow to set a JavaScript breakpoint from code in Chrome?Disabling Chrome Autofill

Does trying to charm an uncharmable creature cost a spell slot?

助けてくれて有難う meaning and usage

Drawing probabilities on a simplex in TikZ

Many many thanks

Is a memoized pure function itself considered pure?

How to determine algebraically whether an equation has an infinite solutions or not?

Number of Fingers for a Math Oriented Race

Talk interpreter

Is there any problem with a full installation on a USB drive?

How do solar inverter systems easily add AC power sources together?

Why was this commercial plane highly delayed mid-flight?

Can a paladin prepare more spells if they didn't cast any the previous day?

Why did the population of Bhutan drop by 70% between 2007 and 2008?

Why is getting a PhD considered "financially irresponsible" by some people?

Toroidal Heyacrazy: Rainstorm

Find feasible point in polynomial time in linear programming

How could a self contained organic body propel itself in space

How can I download a file from a host I can only SSH to through another host?

Can MuseScore be used programmatically?

What happens to transactions included in extinct or invalid blocks?

Can I get a PhD for developing an educational software?

Is this password scheme legit?

What are the IPSE’s, the ASPE’s, the FRIPSE’s and the GRIPSE’s?

Can I take a boxed bicycle on a German train?



Chrome autofill should set the form to valid


Validate decimal numbers in JavaScript - IsNumeric()How to validate an email address in JavaScriptWhich “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?Which equals operator (== vs ===) should be used in JavaScript comparisons?Setting “checked” for a checkbox with jQuery?Set a default parameter value for a JavaScript functionDisable same origin policy in ChromeDisabling Chrome cache for website developmentHow to set a JavaScript breakpoint from code in Chrome?Disabling Chrome Autofill






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















On the first image, you see a bug, where Chrome does not set the form to valid when autofilling.



enter image description here



This is how it should look like.



enter image description here



I found a Github Issue to my issue here, but it is based on Angular. I'm working with Vue.



The label goes only up when the field is focues or valid.



input:focus ~ label, input:valid ~ label 
top:-20px;
font-size:14px;
color:#5264AE;



Besides that, the html with shadow nodes looks like this:



<input type="email" name="email" autocomplete="username" data-vv-delay="500" aria-label="Your email" required="required" class="" aria-required="true" aria-invalid="false">
<div pseudo="-internal-input-suggested" id="placeholder" style="display: block !important;">avidofood@somemail.com</div>
</input>


What could I do?










share|improve this question
































    1















    On the first image, you see a bug, where Chrome does not set the form to valid when autofilling.



    enter image description here



    This is how it should look like.



    enter image description here



    I found a Github Issue to my issue here, but it is based on Angular. I'm working with Vue.



    The label goes only up when the field is focues or valid.



    input:focus ~ label, input:valid ~ label 
    top:-20px;
    font-size:14px;
    color:#5264AE;



    Besides that, the html with shadow nodes looks like this:



    <input type="email" name="email" autocomplete="username" data-vv-delay="500" aria-label="Your email" required="required" class="" aria-required="true" aria-invalid="false">
    <div pseudo="-internal-input-suggested" id="placeholder" style="display: block !important;">avidofood@somemail.com</div>
    </input>


    What could I do?










    share|improve this question




























      1












      1








      1








      On the first image, you see a bug, where Chrome does not set the form to valid when autofilling.



      enter image description here



      This is how it should look like.



      enter image description here



      I found a Github Issue to my issue here, but it is based on Angular. I'm working with Vue.



      The label goes only up when the field is focues or valid.



      input:focus ~ label, input:valid ~ label 
      top:-20px;
      font-size:14px;
      color:#5264AE;



      Besides that, the html with shadow nodes looks like this:



      <input type="email" name="email" autocomplete="username" data-vv-delay="500" aria-label="Your email" required="required" class="" aria-required="true" aria-invalid="false">
      <div pseudo="-internal-input-suggested" id="placeholder" style="display: block !important;">avidofood@somemail.com</div>
      </input>


      What could I do?










      share|improve this question
















      On the first image, you see a bug, where Chrome does not set the form to valid when autofilling.



      enter image description here



      This is how it should look like.



      enter image description here



      I found a Github Issue to my issue here, but it is based on Angular. I'm working with Vue.



      The label goes only up when the field is focues or valid.



      input:focus ~ label, input:valid ~ label 
      top:-20px;
      font-size:14px;
      color:#5264AE;



      Besides that, the html with shadow nodes looks like this:



      <input type="email" name="email" autocomplete="username" data-vv-delay="500" aria-label="Your email" required="required" class="" aria-required="true" aria-invalid="false">
      <div pseudo="-internal-input-suggested" id="placeholder" style="display: block !important;">avidofood@somemail.com</div>
      </input>


      What could I do?







      javascript google-chrome vue.js






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 20:12







      Shadrix

















      asked Mar 27 at 20:06









      ShadrixShadrix

      9357 silver badges22 bronze badges




      9357 silver badges22 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0















          Ok I found one solution over here.



          In my case it's (input:-webkit-autofil):



          input:focus ~ label, input:valid ~ label, input:-webkit-autofill ~ label
          top:-20px;
          font-size:14px;
          color:#5264AE;






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385614%2fchrome-autofill-should-set-the-form-to-valid%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            Ok I found one solution over here.



            In my case it's (input:-webkit-autofil):



            input:focus ~ label, input:valid ~ label, input:-webkit-autofill ~ label
            top:-20px;
            font-size:14px;
            color:#5264AE;






            share|improve this answer





























              0















              Ok I found one solution over here.



              In my case it's (input:-webkit-autofil):



              input:focus ~ label, input:valid ~ label, input:-webkit-autofill ~ label
              top:-20px;
              font-size:14px;
              color:#5264AE;






              share|improve this answer



























                0














                0










                0









                Ok I found one solution over here.



                In my case it's (input:-webkit-autofil):



                input:focus ~ label, input:valid ~ label, input:-webkit-autofill ~ label
                top:-20px;
                font-size:14px;
                color:#5264AE;






                share|improve this answer













                Ok I found one solution over here.



                In my case it's (input:-webkit-autofil):



                input:focus ~ label, input:valid ~ label, input:-webkit-autofill ~ label
                top:-20px;
                font-size:14px;
                color:#5264AE;







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 27 at 20:46









                ShadrixShadrix

                9357 silver badges22 bronze badges




                9357 silver badges22 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385614%2fchrome-autofill-should-set-the-form-to-valid%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript