Giter Site home page Giter Site logo

Comments (3)

akudev avatar akudev commented on July 18, 2024 1

Right, the solution involving UI5Event may be unintuitive, as it is not clear where UI5Event is supposed to come from - it should despite its name be imported from sap/ui/base/Event. Sometimes we choose Names like UI5Element and UI5Event to prevent confusion with DOM Elements/Events, but of course they only work with the correct import.

Regarding the existing solution you tried, please check from which module you have imported Input$ChangeEventParameters - I'm pretty sure it's from the web components library ("sap.ui.webc..."), while the Input you are using is a "sap.m.Input". The WebComponents Input has a "change" event with no parameters, hence the "never".

Try with "InputBase$ChangeEventParameters" and import { InputBase$ChangeEventParameters } from "sap/m/InputBase"; instead. The event is defined on this base class.
Or when using 1.115.1 or 1.116.0, you can directly use InputBase$ChangeEvent instead of Event<InputBase$ChangeEventParameters>.

from ui5-typescript.

akudev avatar akudev commented on July 18, 2024

I see the Input$ChangeEvent has also been mentioned in the release notes. 7d37027 fixes this and changes usages of UI5Event to Event, including the import now.

from ui5-typescript.

EricVanEldik avatar EricVanEldik commented on July 18, 2024

thank you, this solves it!

from ui5-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.