Comments (12)
I found the problem is when jquery is in our page: https://plnkr.co/edit/KhYvapIHBxX0nHRpwjmX?p=preview
from angular-datetime.
I made a plunker... but can't reproduce the issue. Do anyone have an idea what might be causing this (when used in a large app)?
from angular-datetime.
Thanks for the plunker! Is there any other library interacting with <input>
element?
from angular-datetime.
Yes probably. This is the dependancy list (removed as many as I could).
angular.module('app', [
'ui.router',
'ngStorage',
'ngDialog',
'ngAudio',
'datetime',
'plupload.directive',
'toastr'
])
Will also look into the directives we wrote ourselves, and see if any of them interact with <input>
elements.
from angular-datetime.
I've increase the priority of the directive in v5.1.1. Try if it can fix your issue.
from angular-datetime.
I still have the issue. I just replaced datetime.js - did you change anything in custom-input?
from angular-datetime.
Nope. By increasing the priority, there is a chance to fix rendering issue (i.e. $render
function is overwritten by other directives).
BTW, does it happen to the demo of custom-input too?
https://rawgit.com/eight04/custom-input/master/demo.html
from angular-datetime.
I have the exact same issue. Additionally this happens when i just fill in parts of the date with numbers eg. i'm in the (day) section and type "1" followed by "1". After the second "1" is typed the cursor jumps to the end.
from angular-datetime.
Me too :(
And I tested after updating your directive with the best priority of my application.
from angular-datetime.
The problem is that jQuery has different behavior with el.val(undefined)
. In jqLite, el.val()
and el.val(undefined)
both return text value, but jQuery returns an jQuery object with el.val(undefined)
. I'll fix it later.
https://github.com/eight04/angular-datetime/blob/master/lib/directive.js#L67
from angular-datetime.
Also, here is the plunker with it:
https://plnkr.co/edit/TbfZhkxYs0ZReazDzYyH?p=preview
from angular-datetime.
Fixed in 5.1.2.
from angular-datetime.
Related Issues (20)
- Module 'custom-input' is not available HOT 7
- Placeholder HOT 2
- TypeError: date.getTime is not a function HOT 2
- Compatibility with Angular UI Bootstrap DatePicker Popup HOT 2
- Error parsing (w3c formatted) datetimes having timezone different than the datetime parser one HOT 7
- Object.values HOT 2
- Placeholder isn't actually a placeholder and no way to turn it off HOT 3
- Bug: set day HOT 8
- how can I reset placeholder HOT 1
- Any Way To Use Timezone Strings (UTC, EST)? HOT 1
- Unused property Element.handler HOT 1
- strictdi error on version 5.1.3 HOT 1
- Add bower support. HOT 1
- Incorrect Year when using shortDate format HOT 1
- it is no going through steps, it is just stay in days HOT 3
- IE 11 not supported HOT 4
- Create a new version for angular 2+ HOT 5
- Can't initialize control with anything but current date HOT 6
- Timestamp 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 angular-datetime.