IE 11 'clear icon' event not swallowed RRS feed

  • Question

  • Hi,

    For a particular usecase, I need to swallow the event resulting from the 'x' (clear icon) rendered for input = text fields;

    The click on clear icon should not clear the field and the event should be swallowed.

    In my code, event anywhere on the page is swallowed except the 'x' icon click which causes the field to be emptied.

    Please indicate how to identify and swallow the event.

    Ive tried : event.preventDefault() and event.stopPropagation()


    • Edited by SwetaM Tuesday, September 15, 2020 5:38 PM
    Thursday, September 10, 2020 5:42 AM