GithubHelp home page GithubHelp logo

[Question] About text input validate about huh HOT 8 CLOSED

Darvyn avatar Darvyn commented on September 26, 2024
[Question] About text input validate

from huh.

Comments (8)

maaslalani avatar maaslalani commented on September 26, 2024

Ah, you're right the Input doesn't seem to be validating. Good catch, looking for a fix now...

from huh.

maaslalani avatar maaslalani commented on September 26, 2024

Hey @Darvyn, thanks so much for catching this! This is now fixed. Please let me know if it works for you know on the latest main (we will do a patch release soon). And, let me know if you run into any other bugs.

from huh.

Darvyn avatar Darvyn commented on September 26, 2024

Thanks @maaslalani, it works perfectly now !

from huh.

Darvyn avatar Darvyn commented on September 26, 2024

Hi @maaslalani, just found another bug related with the huh.NewText(), if we got a error from validation, then the cursor will still jump to the next field, and cannot shift+tab to back, I'm using the version 0.2.1

image

from huh.

maaslalani avatar maaslalani commented on September 26, 2024

Thanks, will fix!

from huh.

maaslalani avatar maaslalani commented on September 26, 2024

@Darvyn Should be fixed now, it shouldn't let you go to the next field until the input is valid.

from huh.

Darvyn avatar Darvyn commented on September 26, 2024

@Darvyn Should be fixed now, it shouldn't let you go to the next field until the input is valid.

Great, thanks! @maaslalani

from huh.

Darvyn avatar Darvyn commented on September 26, 2024

Hi @maaslalani , excuse to come again:)
I wonder if you can add a special situation:
If the validation is failed, we can see the error message, but then if we just want to use shift+tab to go back to the previous field to modify something, it seems that we are blocked here, only have to restart the program. I know that enter is to trigger the validation, but if you can ignore the shift+tab, maybe can be useful for some situation.

from huh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.