Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Issue During Insert Data #4

Open
Fik21-i opened this issue Oct 27, 2024 · 1 comment
Open

Dynamic Issue During Insert Data #4

Fik21-i opened this issue Oct 27, 2024 · 1 comment

Comments

@Fik21-i
Copy link

Fik21-i commented Oct 27, 2024

Hi rodrigofs,

currently im using your plugin for my project . i just found out that for dynamic function has some bug to manage the number during switching format. i have attach the video and image of my code for your reference. Thanks

Screen.Recording.2024-10-27.at.3.22.04.PM.mov
Screenshot 2024-10-27 at 3 21 22 PM
@rodrigofs
Copy link
Owner

rodrigofs commented Oct 30, 2024

Hello @Fik21-i,

how are you? Well, I'm analyzing the reported issue, and it seems like you want to dynamically format these numbers using the following formats, depending on the number of characters. However, I noticed that you are not following the pattern for masks:

Try doing the following to resolve this, if I understood correctly:

MaskInput::make('dynamic')
      ->mask(RawJs::make("['99.9999','999.9999']"))
      ->stripCharacters(['.'])
      ->maxLength(7),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants