Topic: Input mask
<div class="form-outline mb-2">
<input type="text" id="smsTlfnr" class="form-control" data-mdb-input-mask="99999999" required="required" />
<label for="smsTlfnr" class="form-label">Tlf nr. : </label>
</div>
this input accept all values not just numeric
Michał Duszak staff answered 4 years ago
Thank you for your feedback. There is a problem with passing all-numeric values to mask. It will be fixed as soon as possible.
As a workaround you can set the type of an input to a "number"
.
<div class="form-outline mb-2">
<input type="number" id="smsTlfnr" class="form-control" data-mdb-input-mask="99999999" required="required" />
<label for="smsTlfnr" class="form-label">Tlf nr. : </label>
</div>
csandoy answered 4 years ago
I get this error when using input-mask Uncaught Error: INPUT-MASK: Option "inputMask" provided type "number" but expected type "string". at bootstrap:2 at Array.forEach () at i (bootstrap:2) at o.value (bootstrap:2) at new o (bootstrap:2) at bootstrap:2 at Array.forEach () at Module.o.m.n (bootstrap:2) at o (bootstrap:2) at bootstrap:2
Michał Duszak staff answered 4 years ago
Hello, thank you for your feedback. We will fix this as soon as possible.
Keep Coding,
Michal
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- User: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 3.5.1
- Device: PC
- Browser: New Edge
- OS: Wndows 10
- Provided sample code: No
- Provided link: No