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

degradeInputs in latest git version gone #2123

Closed
negue opened this issue Jul 21, 2011 · 3 comments
Closed

degradeInputs in latest git version gone #2123

negue opened this issue Jul 21, 2011 · 3 comments

Comments

@negue
Copy link
Contributor

negue commented Jul 21, 2011

Is this now a new feature or just a bug?

I really would need the feature back .... :)

@scottjehl
Copy link

Worked on it today. Almost done. Hang tight :)

@anho
Copy link

anho commented Jul 26, 2011

Need this one too.

@OwenBrotherwood
Copy link

By the way, the doc @ http://jquerymobile.com/test/docs/forms/plugin-eventsmethods.html indicates that the type="search" will be degraded to type="text": but the type get's degraded to type="true".
This is an old feature, not caused by the commit.

The code problem could be the:
search: true, // should be search: "text" ???
optType = o.degradeInputs[ type ] || "text"; // the value for search is "true"
if ( o.degradeInputs[ type ] ) { //

And one could save a micro micro sec by having the declaratiom of optType statement in the code segment:
if ( o.degradeInputs[ type ] ) {
optType=o.degradeInputs[type];

Degraded Form Input Types
jQuery Mobile degrades several HTML5 input types back to type=text, or type=number after adding enhanced controls. For example, inputs with a type of range are enhanced with a custom slider control, and their type is set to number to offer a usable form input alongside that slider. Inputs with a type of search are degraded back to type=text after we add our own themable search input styling.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants