Adam Shaw 8 лет назад
Родитель
Сommit
e41824945c
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      src/component/DateComponent.ts
  2. 2 1
      src/component/interactions/Interaction.ts

+ 1 - 1
src/component/DateComponent.ts

@@ -371,7 +371,7 @@ export default abstract class DateComponent extends Component {
   // Renders a visual indication of a event or external-element drag over the given drop zone.
   // If an external-element, seg will be `null`.
   // Must return elements used for any mock events.
-  renderDrag(eventFootprints, seg, isTouch) {
+  renderDrag(eventFootprints, seg?, isTouch=false) {
     let renderedHelper = false
 
     this.iterChildren(function(child) {

+ 2 - 1
src/component/interactions/Interaction.ts

@@ -1,8 +1,9 @@
+import InteractiveDateComponent from '../InteractiveDateComponent';
 
 export default class Interaction {
 
   view: any
-  component: any
+  component: InteractiveDateComponent
 
 
   constructor(component) {