Code Monkey home page Code Monkey logo

Comments (2)

Demetri0 avatar Demetri0 commented on June 15, 2024

Btw... what if the value in a box not selected, but cursor are in a box:

Selected:
Screenshot from 2023-06-20 18-13-46

Value not selected, but cursor in the box:
Screenshot from 2023-06-20 18-15-14

** You can achieve this by pressing: Arrow Up, Arrow Down, Home, End, PgUp, PgDown keys, or using mouse.

What should happen in the second variant? For now pressing 2 digit doing nothing but just move cursor to the end. (Tested on MUI OTP Field home page)
Behavior that I can expect is that right part of value should be shifted, so the result should be next:
Screenshot from 2023-06-20 18-16-53

from mui-otp-input.

michael-jong-ds avatar michael-jong-ds commented on June 15, 2024

Behavior that I can expect is that right part of value should be shifted, so the result should be next:

yeah that would be nice, then if the cursor is before the value
Screenshot from 2023-06-21 09-47-35
it should shift the values to the right

Screenshot from 2023-06-21 09-49-14

from mui-otp-input.

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.