Giter Club home page Giter Club logo

vue-pincode-input's People

Contributors

dependabot[bot] avatar lauraschlimmer avatar seokky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vue-pincode-input's Issues

Can't repaste on already pasted data

Hi Seokky,

I found 2 another issues after you fixed the issue of copy paste:

  1. now try to copy paste again on already entered data => you'll find all the copied data pasted on the focus cell only and the application will hang

  2. try to copy paste a string => you'll find all the copied data pasted on the focus cell only and the application will hang

When setting the length of the pin code input, it errors out

Hey,

I've set the PincodeInput to 6 via <PincodeInput v-model="code" length='6' /> and it creates the boxes fine, however in the console I get the following error:

[Vue warn]: Invalid prop: type check failed for prop "length". Expected Number with value 6, got String with value "6".

found in

---> <PincodeInput>
       <VStepperContent>
         <VStepper>
           <OnboardingStepper> at resources/js/components/onboarding/OnboardingStepper.vue
             <VContent>
               <VApp>
                 <Root>

Any idea?

Thanks :D

Please Help

  • I'm trying to apply styles in a component. I am using nuxt
    `
    <div class="text-center settings-heading">
      <img src="/dashboard/tPin.svg" height="100" width="100" alt="Trasaction Pin screen">
    </div>
    
    <div class="input-wrapper my-5 d-flex flex-column align-items-center " v-if="enterOldPin">
    
      <div class="text-center" >
        <h4 class="text-bold">Enter your old PIN </h4>
        <p class="text-muted"> An easier way to make payments</p>
      </div>
        <PincodeInput
          v-model="oldCode"
          placeholder=""
          :secure = oldCode
        />
    
    <button class="btn btn-primary my-5" @click="changePinScreen()" :disabled="oldCode.length !== 4"> Continue </button>
    </div>
    
    <div v-if="createNewPin">
    
      <div class="input-wrapper my-5 d-flex flex-column align-items-center ">
    
        <div class="text-center">
          <h4 class="text-bold">Create your PIN </h4>
          <p class="text-muted"> Enjoy an easier way to make payments</p>
        </div>
          <PincodeInput
            v-model="newCode"
            placeholder=""
            :secure = oldCode
            class=""
          />
          <button class="btn btn-primary my-5" @click="gotoConfirmPin()" > Continue </button>
      </div>
    
      <div v-if="showConfirmPin" class="input-wrapper my-5 d-flex flex-column align-items-center ">
        <div class= "text-center">
          <h4 class="text-bold">Confirm your PIN </h4>
          <p class="text-muted"> Enjoy an easier way to make payments</p>
        </div>
        <PincodeInput
          v-model="confirmCode"
          placeholder=""
          :secure = oldCode
        />
    
       <button class="btn btn-primary my-5" @click="changeTransactionPin" :disabled="disabled"> Continue </button>
      </div>
    </div>
    
    <script> import PincodeInput from 'vue-pincode-input' export default { components: { PincodeInput }, } <style scoped> .head-primary { color: var(--theme-color); } p { color: var(--font-color); } .user-details-card { padding: 1rem; } input.vue-pincode-input { background: #ffffff; height: 56px; max-width: 70px; margin-left: 1rem; font-size: 2.5rem; } </style>

    `

    • I also get 'Cannot import statement outside module' whenever i refresh the page in nuxt projext

autofocus invalid

onCellChanged(index: number, newVal: string, oldVal: string): void {
  if (!this.isTheCellValid(newVal, false)) {
    this.cells[index].value = '';
    return;
  }
  /* need judge this.autofocus */
    this.focusNextCell();
  /* performing character preview if it's enabled */
  if (this.secure && this.characterPreview) {
    setTimeout(this.setCellInputType, this.charPreviewDuration, index);
  }
}

Numbers are "falling" in Safari

On Safari when someone types in numbers into the fields and taps several times outside the input field and back again into the input field the numbers start falling out of the input field.

bug

The Vue app where we found this will be online from tomorrow on but I am quite sure that it is nothing specific to our project

Copy paste feature is wrong

i tried to copy paste a number into the pin code input but it always skip the first focused input and start pasting from the following one

any one can help??

cuztomization of regex

difficult to customize if you can give the option to add new regex rules
because your regex rules only let some charchere pass if like me you want to use lodash debounce to display

the user's password a few seconds before replacing it with special chars it is complex

Get this error with vue3

PincodeInput.min.js?a7d0:1 Uncaught TypeError: Cannot read property 'extend' of undefined
at eval (PincodeInput.min.js?a7d0:1)
at Module../node_modules/vue-pincode-input/PincodeInput.min.js (chunk-vendors.js:748)
at webpack_require (app.js:854)
at fn (app.js:151)
at eval (cjs.js?!./node_modules/ts-loader/index.js?!./node_modules/eslint-loader/index.js?!./src/views/enter-id/enter-id.component.ts?vue&type=script&lang=ts:10)
at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/ts-loader/index.js?!./node_modules/eslint-loader/index.js?!./src/views/enter-id/enter-id.component.ts?vue&type=script&lang=ts (app.js:1067)

Manual Focus

So I'm using this inside a dialog in a vuetify app to prevent a user from entering in an admin page.
Functionally everything works great but because the way vuetify mounts dialogs the autofocus doesn't work right.
Is there a ref or a way to manually invoke a focus to the first element?
The following code does not work

<v-dialog v-model="pinDlg fullscreen>
    <CodeInput ref="pincode" .../>
</v-dialog>

if(this.pinDlg) {
    this.$refs.pincode.focus()
}

Can't copy paste in the pincode input fields

Hello,

I'm trying to copy paste numbers into the pin code text fields but it always skip the focused input fields and start pasting from the following one

any one can help??

ts declaration

Try npm install @types/vue-pincode-input if it exists or add a new declaration (.d.ts) file containing declare module 'vue-pincode-input';

type

not working with nuxt

getting Cannot use import statement outside a module

mistake

sorry this is the wrong github, was on the wrong page.

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.