Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-9591

Android: Webview: Having an event listener for click event of webview or any of its parent view does not allow web interaction with web view components

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: Release 2.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Titanium Studio: 2.1.0.201206151953
      Titanium SDK: 2.1.0.v20120615184153
      Android Device: Android Tab (V3.2), Android Emulator 2.2
      Runtime: v8

      Description

      If the application has the addeventlistener method for the click event for the webview or its parent view, then the web components (like links, web buttons etc.) on the web view do not work.

      Regression. This does not happen in 2.0.2.

      Steps to reproduce:
      1. Create an application with code below
      2. Launch the application
      3. In the google web page that opens, click on any link

      Actual: The link does not work. Instead it opens the options for text edit

      Expected: The link should work normally

      var win = Ti.UI.createWindow({
      	backgroundColor:'#000'
      })
       		var webview=Ti.UI.createWebView({
      			url:'http://google.com',
      		});
      		
      		webview.addEventListener('click', function(e){
      			//any event listener code
      		});
      		
      win.add(webview);
      win.open();
      
      

        Attachments

          Activity

            People

            • Assignee:
              ngupta Neeraj Gupta
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-13739
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code