jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • achiesa
    Participant

    If anyone else stumbles upon this topic, a quick and dirty way to clear the value contained in the widget is in emptying the two inputs that are inside the combobox widget.

    Something like:

    $('#widget-id').down('input').val(null);

    This can be triggered with the change event: if you focus out from the combobox, the change will fire, but with an empty event.args value. If there is no event.args, we can trigger the “manual” cleanup.
    Hack-ish, but seems to work in my use cases.

    Best,

    Alberto Chiesa


    achiesa
    Participant

    I would say it is, indeed, a bug.
    The Angular jqxSliderComponent doesn’t implement OnDestroy interface.

    It should, and should call the ‘destroy’ method of the underlying widget by itself.
    It is his responsibility to do so.

    AFAICT, every Angular component provided that wraps a widget whould implement an OnDestroy method.

Viewing 2 posts - 1 through 2 (of 2 total)