Comments (7)
Hello @adamkarb!
I've not designed this module to work with input[file]
. Could you describe your use case and explain how you expect it to behave?
Thanks.
from angular-input-modified.
I was hoping to test against whether or not the form has been changed, and that would prevent the user from leaving the page without saving changes or confirming exit. It is just a problem since there are input files in the form as well.
from angular-input-modified.
I see. I will try to come up with the solution. Will get back to you soon. Thanks for your report.
from angular-input-modified.
I'm sorry Adam, but it looks like input[file]
input type is not supported by the ngModel
directive. input-modified
is based on model
directive in order to work and will not work without it. Probably we could create a "shim", but I think it will be out of scope for input-modified
.
There are two options for you here:
- Implement an
ngModel
directive forinput[file]
yourself.input-modified
should work on top of it if you will stick to thengModel
original interface. - Use some additional checks in your application code to detect uploaded, but not saved, files.
I will try to look into this issue in the future, but I couldn't give it a high priority right now.
from angular-input-modified.
Yea I hacked my way through it. I'm no javascript expert but it would be cool if angular had some built in way to work around it.
from angular-input-modified.
Hey! I'm glad to hear that you've managed to overcome this limitation. It would be great if you will be able to share your solution here with others in case someone else in the future will stumble upon this )
from angular-input-modified.
I watched them via the jQuery .change() method. If they changed, I set a variable to true that was checked later on before the user changes states.
from angular-input-modified.
Related Issues (20)
- Add support for CommonJS HOT 5
- ngModel directive is not triggered HOT 6
- Compare Types HOT 3
- bs-modfiable seems to not behave as expected HOT 2
- add license to bower.json file HOT 1
- Add support for ngTagsInput HOT 3
- Angular 2 support? HOT 6
- TypeError: Cannot read property '$$notifyModelModifiedStateChanged' of null HOT 2
- It's not working for Text-Angular . HOT 1
- How to eanble this script on a specific form ? HOT 4
- "Ghost modified control" HOT 1
- Issues with input type=email HOT 1
- Bug with angular 1.6.1 HOT 5
- TypeError: Cannot read property '$$notifyModelModifiedStateChanged' of null
- Property `modified` on parentform not updated when childform was removed HOT 4
- $$onChildModelModifiedStateChanged HOT 3
- How do I know why the form is marked as modified? HOT 4
- Console Error HOT 5
- Modified state gets screwed when a subform is toggled HOT 1
- Modified state based on $viewValue instead of $modelValue ?
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-input-modified.