Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng-model in input not working #127

Open
elahekaramzade opened this issue Sep 23, 2018 · 0 comments
Open

ng-model in input not working #127

elahekaramzade opened this issue Sep 23, 2018 · 0 comments

Comments

@elahekaramzade
Copy link

elahekaramzade commented Sep 23, 2018

this is how I use ADM-datepicker in my code

   <adm-dtp ng-model="insuranceIndivisualCrtl.dateOfBirth" options='{formated: "1360/03/15", calType: "jalali",format: "YYYY/MM/DD",default:"",dtpType:"date",multiple:false,autoClose:true,watchingOptions:true}'>
      <div class="input-group date">
                <a dtp-toggle="dtp-toggle" class="input-group-addon">
                        <i class="fa fa-calendar"></i>
                </a>
                 <input type="text" ng-model="insuranceIndivisualCrtl.dateOfBirth" placeholder="تاریخ" dtp-input="dtp-input" class="form-control persian-digits" />
    </div>
 </adm-dtp>

when i writning in input it's not working and send null to server. but if i select from calender it works fine.

ncaught TypeError: Cannot read property 'unix' of undefined
at m.t.modelChanged (VM2604 ADM-dateTimePicker.min.js:11)
at HTMLInputElement. (VM2604 ADM-dateTimePicker.min.js:11)
at HTMLInputElement.dispatch (jquery-3.1.1.min.js:3)
at HTMLInputElement.q.handle (jquery-3.1.1.min.js:3)
t.modelChanged @ VM2604 ADM-dateTimePicker.min.js:11
(anonymous) @ VM2604 ADM-dateTimePicker.min.js:11
dispatch @ jquery-3.1.1.min.js:3
q.handle @ jquery-3.1.1.min.js:3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant