Pending Review
Last Updated: 30 Aug 2019 10:36 by ADMIN
Doug
Created on: 27 Aug 2019 21:49
Category: Scroller (Mobile)
Type: Bug Report
0
Filter fails on IOS Safari when contains a single quote

Applying the following filter to a datasource

app.localDocs = new kendo.data.DataSource({
        data: app.docArray,
        schema: {
            model: app.doctorModel,
            total: function () {
                return app.docArray.length;
            }
        }
    });

    app.doctorModel = new kendo.data.Model.define({
        id: "code",
        hasChildren: false,
        fields: {
            code: {
                type: "number",
                editable: "false"
            },
            name: {
                type: "string",
                editable: false
            },
            msp: {
                type: "string",
                editable: false
            }
        }
    }); 

app.localDocs.filter({
          logic:"or",
          filters: [
              {
              field: "name",
              operator: "contains",
              value: $('#filterV').val()
                    },
                    {
              field: "msp",
              operator: "contains",
              value: $('#filterV').val()
                    }
                ]
            });
            app.mobileApp.scroller().scrollTo(0, 0);

 

 

 Try the search using O'Brien  The list shows no results as soon as you hit the apostrophe.

 

Works fine on Safari on a mac, chrome on any system, but has the above result above on an ipad or iphone. 

 

5 comments
ADMIN
Misho
Posted on: 30 Aug 2019 10:36

Hello,

Thank you for testing and providing us with additional details.

I was able now to replicate the problem also in my side in iPhone but not on iPad and could confirm this is a bug with the datasource.

Here is the bug that I've opened in github that you could follow: https://github.com/telerik/kendo-ui-core/issues/5241

and the public feedback portal item: https://feedback.telerik.com/kendo-jquery-ui/1427138-filter-fails-on-ios-safari-when-contains-a-single-quote

 

As a small token of gratitude for your report I'm updating your Telerik points.

 

Best Regards,
Misho
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Doug
Posted on: 29 Aug 2019 16:20

The results are attached.  I did my testing using your dojo as it stands with no changes.

I first filtered with just the letter O, which returned 4 matches.  Then I added the ', which returned no matches.

 

Attached Files:
ADMIN
Misho
Posted on: 29 Aug 2019 10:40

Hello Doug,

Thank you for your feedback. I've modified the filter in accordance with your comments - replaced "startswith" with "contains", added logic or for the name and msp fields and created the following dojo sample: https://dojo.telerik.com/uraLukus/6

Upon testing this on iPad I enter O' and filter the datasource, I get 1 match as expected.

Once you get a chance, could you please modify the configuration in that sample so that the undesired behavior could be observed and send it back again with the reproduction steps so we could be able to replicate it and debug it on our side?

Thank you for your collaboration.

Looking forward to hearing from you soon!

Best Regards,
Misho
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Doug
Posted on: 28 Aug 2019 13:51

I'm away all day roday, so I can't complete your request till I return.

 

A couple of comments on your Dojo.

The filter is not the same as I sent you.  Not sure if that matters, but maybe it does.  The filter should have "contains" nor "startswith"  and there needs to be a logic "or"

 

Doug 

ADMIN
Misho
Posted on: 28 Aug 2019 12:34

Hi Doug,

I tried to replicate the issue you are experiencing on my side but no avail. I've created a runnable dojo sample containing a datasource configuration with filtering similar yours for the purpose of testing:

https://dojo.telerik.com/uraLukus

Could you please modify the configuration in that sample so that the undesired behavior could be observed and send it back as runnable sample with the reproduction details so we could be able to replicate it reliably and investigate it on our side? 

Thanks for your collaboration and help.

Best  Regards,
Misho
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.