SparrowJang / ngFileReader

This is file reader component on angular.
MIT License
25 stars 8 forks source link

Clean input value on change #5

Closed danielr18 closed 8 years ago

danielr18 commented 8 years ago

Picking the same file doesn't trigger onchange event, you might think, well... it didn't change, but in my case I'm using the same inputs in a form where for every select value you have to upload images. If I pick img-1 in option1, I wouldn't be able to pick img-1 in option2 because it doesn't trigger onchange.

SparrowJang commented 8 years ago

Hi danielr18,

The feature has implemented at $elem.find("input").val('').

I guessed that you used input element. It's not able to work If you use container to be input element. You will probably use div or span tag to replace a input element.

Have you requirement to use input container?

danielr18 commented 8 years ago

You are totally right. Changed my input to a div.