Skip to content

Commit d62ede0

Browse files
committed
fix(typed-json-model): correct a wrong event type
1 parent 1d2518f commit d62ede0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test-packages/typed-json-model/webapp/controller/App.controller.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Controller from "sap/ui/core/mvc/Controller";
22
import { TypedJSONContext, TypedJSONModel } from "../model/model";
33
import { exampleBinding } from "./Example";
4-
import { List$ItemClickEvent } from "sap/ui/webc/main/List";
54
import MessageBox from "sap/m/MessageBox";
5+
import { ListBase$ItemPressEvent } from "sap/m/ListBase";
66

77
type PurchaseOrderId = `PO-${string}`;
88
type PurchaseOrderType = "Purchase Order";
@@ -54,7 +54,7 @@ export default class App extends Controller {
5454
/**
5555
* Example on how to how to use the typed context
5656
*/
57-
onPressItem(event: List$ItemClickEvent): void {
57+
onPressItem(event: ListBase$ItemPressEvent): void {
5858
const context = event.getSource().getBindingContext() as TypedJSONContext<
5959
{ order: PurchaseOrder },
6060
`/order/items/${number}`

0 commit comments

Comments
 (0)