Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Configurable options: original behaviors get lost #7961

Open
@starnutoditopo

Description

@starnutoditopo

Issue description:

After having set some configuration options (like linkBindingEnabled or hashListeningEnabled; see http://api.jquerymobile.com/global-config/ ), there is no way to perform the original behaviors any more.

An example is the use of Query Mobile with Backbone.js, as shown at http://demos.jquerymobile.com/1.4.5/backbone-requirejs/

Here $.mobile.linkBindingEnabled and $.mobile.hashListeningEnabled are set to false. Now, if a view contains a "select" tag, there is no way to make it show its popup whit the nice JQM's style, setting data-native-menu="false".

This problem has already been pointed out for example at http://stackoverflow.com/q/16187209 and at http://stackoverflow.com/a/16209370 some hack is reported to attempt to workaround it.
Note that the suggested workaround do not really perform exactly like the original behaviors (see http://jsfiddle.net/f9Pt2/)

Test page:

http://jsbin.com/tadewepame/1/

Steps to reproduce:

In te thest page, just try to select an option from the list. As jqm has been configured with
$.mobile.ajaxEnabled = false; $.mobile.linkBindingEnabled = false; $.mobile.hashListeningEnabled = false; $.mobile.pushStateEnabled = false; and the select element ha been marked with data-native-menu="false", nothing appears (as expected!), but there is no way to force the popup to show, so that the configuration options, just for that case, could be ignored.

Platforms/browsers:
Chrome on Windows 7

jQuery Mobile and jQuery core version used:
jquery 2.1.3
jquery mobile 1.4.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions