Giter Site home page Giter Site logo

input-mask's People

Contributors

kon3ko avatar murilolopes avatar wemersonrv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

input-mask's Issues

not working in Nova V4

mask-input:1235 Uncaught TypeError: window.Vue.use is not a function
at Object. (mask-input:1235:2733)
at t (mask-input:1235:167)
at Object. (mask-input:1235:4683)
at t (mask-input:1235:167)
at mask-input:1235:551
at mask-input:1235:560
at mask-input:1235:37
at Object../node_modules/v-money/dist/v-money.js (mask-input:1235:44)
at webpack_require (mask-input:15295:42)
at Module../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/FormField.vue?vue&type=script&lang=js (mask-input:35:65)

Ability to show the errors message

Seems there's not the HTML to show the error message.
I have added it on my local project but I need it on my production as well.

Going to add a PR for it.

Mask Money

is possible in your nova package mask money (BRL)? when masked 1000 gonna turn 1.000,00

Placeholder not working

I'm adding placeholder and it's just being ignored, showing the field name:

InputMask::make('Phone Number', 'phone_number')
    ->mask('###-###-####')
    ->raw()
    ->nullable()
    ->placeholder('888-777-5555'),

Add support for help text

Help text isn't being displayed:

InputMask::make('Field', 'field')
    ->mask('###-###-####')
    ->raw()
    ->help('Cool help text.'),

Form update it show status undefined error in console.

I used below field like

     InputMask::make(ucfirst(__('Expiry days')), 'expiry_days')
            ->help(
                ucfirst(__('Expiry days must be numeric'))
            )
            ->mask('###')
            ->raw()
            ->rules('required')

Its perfectly fine, But when I update the form it gives or show the error in console like below.

vendor.js?id=42ebb11e945776d675c7:1 TypeError: Cannot read property 'status' of undefined
    at p.<anonymous> (app.js?id=ea4846248d441c830d5f:1)
    at k (app.js?id=ea4846248d441c830d5f:1)
    at Generator._invoke (app.js?id=ea4846248d441c830d5f:1)
    at Generator.e.<computed> [as next] (app.js?id=ea4846248d441c830d5f:1)
    at o (app.js?id=ea4846248d441c830d5f:1)
    at app.js?id=ea4846248d441c830d5f:1
    at new Promise (<anonymous>)
    at new t (app.js?id=ea4846248d441c830d5f:1)
    at p.<anonymous> (app.js?id=ea4846248d441c830d5f:1)
    at p.<anonymous> (app.js?id=ea4846248d441c830d5f:1) 

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.