Closed Grasher134 closed 7 years ago
I think you need to add
dialog.trigger = document.getElementById('date-format');
@MelleB is right, you have to add the trigger first, either
dialog.trigger = document.getElementById('date-format');
or
var dialog = new mdDateTimePicker.default({
type: 'date',
trigger : document.getElementById('date-format')
})
I tried to add both click and onOk events to field. Click works fine, I see a popup, though it is kinda blurry. But when I hit ok - nothing happens.