');
- $menu = this.menu.$node || $('
');
+ // #225
+ $input = this.input.$input || $('');
+ $menu = this.menu.$node || $('');
// #705: if there's scrollable overflow, ie doesn't support
// blur cancellations when the scrollbar is clicked
diff --git a/src/typeahead/www.js b/src/typeahead/www.js
index 8aa60827bb..cb26911d8c 100644
--- a/src/typeahead/www.js
+++ b/src/typeahead/www.js
@@ -47,7 +47,8 @@ var WWW = (function() {
function buildHtml(c) {
return {
wrapper: '',
- menu: ''
+ //#225
+ menu: ''
};
}
@@ -76,18 +77,23 @@ var WWW = (function() {
input: {
position: 'relative',
verticalAlign: 'top',
- backgroundColor: 'transparent'
+ backgroundColor: 'transparent',
+ // #225
+ display: 'block'
},
inputWithNoHint: {
position: 'relative',
- verticalAlign: 'top'
+ verticalAlign: 'top',
+ // #225
+ display: 'block'
},
menu: {
position: 'absolute',
top: '100%',
left: '0',
zIndex: '100',
- display: 'none'
+ // #225
+ display: 'block'
},
ltr: {
left: '0',
diff --git a/test/typeahead/dataset_spec.js b/test/typeahead/dataset_spec.js
index 9c00c1f896..6649290779 100644
--- a/test/typeahead/dataset_spec.js
+++ b/test/typeahead/dataset_spec.js
@@ -430,7 +430,8 @@ describe('Dataset', function() {
this.source.andCallFake(syncMockSuggestions);
this.dataset.update('woah');
- expect(this.dataset.$el.find('div[role="option"]')).toHaveAttr('id');
+ // #225
+ expect(this.dataset.$el.find('span[role="option"]')).toHaveAttr('id');
});
it('should apply id attribute when using custom suggestion template', function() {