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

Select: Custom select uses label, then placeholder for dialog title #7404

Conversation

gabrielschulhof
Copy link

Fixes gh-7399

@@ -397,7 +397,7 @@ $.widget( "mobile.selectmenu", $.mobile.selectmenu, {

self.menuType = "page";
self.menuPageContent.append( self.list );
self.menuPage.find( "div .ui-title" ).text( self.label.text() );
self.menuPage.find( "div .ui-title" ).text( self.label.getEncodedText() || self.placeholder );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line length

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) when pulling 018f455 on 7399-custom-selectmenu-dialog-title-from-placeholder into 39fe09e on master.

@arschmitz
Copy link
Contributor

👍 make sure the final commit uses slectmenu not select for component

gabrielschulhof pushed a commit that referenced this pull request May 27, 2014
@gabrielschulhof gabrielschulhof deleted the 7399-custom-selectmenu-dialog-title-from-placeholder branch May 27, 2014 20:23
agcolom pushed a commit to agcolom/jquery-mobile that referenced this pull request Nov 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selectmenu: Use placeholder for dialog title, not label
4 participants