Comments (6)
it doesn't need to be fixed because it's intended to work like that, normal input doesn't show placeholder because the placeholder props is empty. Please open new issue if you have suggestion to change how placeholder props works.
from vue-numeric.
Hello @Diathedia,
I tried this approach and it's working.
Could you share your code to reproduce the problem? preferably in jsbin.com
from vue-numeric.
Sorry for the late reply. Apparently it happens when it's hidden from the dom.
Here is the code. Thanks before!
from vue-numeric.
Oh, that's probably because of how the placeholder
props works, it will prioritise the placeholder even if there's a value.
from vue-numeric.
Hmm, normal input don't behave like that, though. I wonder if there's a way to fix this?
from vue-numeric.
This sounds very odd - "it will prioritise the placeholder even if there's a value."
HTML placeholder attribute doesn't work like this way.
Is there any particular reason why you do this?
from vue-numeric.
Related Issues (20)
- How to accept changes when typing, and not when defocusing? HOT 2
- Initial Value Empty if initial value is ZERO HOT 12
- Symbols after number HOT 1
- unpkg or jsdelivr not version 2.4.2 HOT 3
- Support for Vue 3 and Typescript HOT 3
- [Vue warn]: Method "placeholder" has already been defined as a prop. HOT 1
- Random decimal values being added on the input HOT 2
- Keep currency symbol on input field focus HOT 1
- Allow 0 as Input HOT 2
- Precision higher than 7 not working HOT 2
- Issue when typing digits with comma it's reseted to 0.00
- Prevent string insert HOT 1
- v-on:change doesn't work HOT 3
- [Feature Request] Please support input class HOT 1
- Remove 0 as default: how? HOT 3
- When applying "readOnly" to <span> or <input> HOT 1
- Decimal comma separator wrong value HOT 3
- Does not select all when given focus HOT 1
- Trying to use vue-numeric input for all currency related fields of my form HOT 6
- Is this project still active? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-numeric.