Skip to content

Commit

Permalink
fix(core): allow date to be set on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
arpit1503khanna committed Feb 22, 2024
1 parent 3a62c8a commit 0b6deba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@
type="date"
[(ngModel)]="date"
(click)="$event.stopPropagation()"
(keydown)="
handleEnterEvent(
callback,
nodeWithInput.node,
{target: {value: date}},
inputType.Date
)
"
/>
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,13 @@ export class GroupComponent<E> implements OnInit, AfterViewInit {
this.hidePopper();
}
}

handleEnterEvent(callback:any, node: BpmnNode,
$event: any,
type: string, metaObj: RecordOfAnyType,){
const response =this.getLibraryValue(node,$event,type,metaObj)
callback(response)
}
/**
* It removes all the inputs that come after the current input
* @param element - NodeWithInput<E>
Expand Down

0 comments on commit 0b6deba

Please sign in to comment.