Skip to content

Commit daf0ab2

Browse files
fix(core): allow date to be set on enter (#61)
* fix(core): fetch correct date when giving input with keyboard GH-56 * fix(core): allow date to be set on enter GH-56
1 parent 6fd2d7e commit daf0ab2

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

projects/workflows-creator/src/lib/builder/group/group.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@
278278
type="date"
279279
[(ngModel)]="date"
280280
(click)="$event.stopPropagation()"
281+
(keydown)="
282+
handleEnterEvent(
283+
callback,
284+
nodeWithInput.node,
285+
{target: {value: date}},
286+
inputType.Date
287+
)
288+
"
281289
/>
282290
</div>
283291
<div>

projects/workflows-creator/src/lib/builder/group/group.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,13 @@ export class GroupComponent<E> implements OnInit, AfterViewInit {
589589
this.hidePopper();
590590
}
591591
}
592+
593+
handleEnterEvent(callback:any, node: BpmnNode,
594+
$event: any,
595+
type: string, metaObj: RecordOfAnyType,){
596+
const response =this.getLibraryValue(node,$event,type,metaObj)
597+
callback(response)
598+
}
592599
/**
593600
* It removes all the inputs that come after the current input
594601
* @param element - NodeWithInput<E>

projects/workflows-element/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"directory": "dist"
1919
},
2020
"hash": "8eb49ead733e56f2c1c9b89176e0b56ce4e6dfd6c22bce2e82e4a623c95ddf65"
21-
}
21+
}

0 commit comments

Comments
 (0)