question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add "superlazy" mode to QInput

See original GitHub issue

Is your feature request related to a problem? Please describe. I want QInput to only run validation when I manually call validate(). (for context, I call validate when the user clicks “next” in a form. I don’t want to alert them before that)

Describe the solution you’d like A prop a bit like lazy-rules but that makes the validation not even run on losing focus

Describe alternatives you’ve considered Just now I tried adding this

<q-input
            ...
            ref="qinput"
            lazy-rules
            :rules="[...]"
            @blur="$refs.qinput.resetValidation()"
></q-input>

and it seems to work but it’s pretty hacky and feels likely to break.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rstoenescucommented, May 8, 2020

Enhancement will be available in “quasar” v1.11.0. Like told above, lazy-rules will also support the ondemand String value for the superlazy behavior.

1reaction
rstoenescucommented, May 8, 2020

I think the way to go is to add one more possible value for lazy-rules. Example: lazy-rules="ondemand"

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input | Quasar Framework
The QInput component is used to capture text input from the user. It uses v-model , similar to a regular input. It has...
Read more >
AI Battles require manual input - Mortal Kombat 11 - GameFAQs
For Mortal Kombat 11 on the PlayStation 4, a GameFAQs message board topic titled "AI Battles require manual input".
Read more >
Adventures are super lazy and either need to be reworked or ...
Reusing locations is fine, but adding multiple returns in a single adventure to "fill out" the time to an hour or so is...
Read more >
Writing your own 2D Pixel Shader in Monogame for Absolute ...
The first thing we'll want to do add our texture to our project. Go ahead and add the texture you chose to the...
Read more >
Houdini - cgwiki
Easy. Create a multiply node; Create a constant node, float mode, set its value to 0.002; Connect the global frame attribute to first...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found