自動YUIオートコンプリートzindexがオフになっています。オートコンプリートDIVを一番上に強制するにはどうすればよいですか。
以下では、YUIの標準テンプレートを使用しています。
YAHOO.util.Event.onDOMReady(function(){YUI()。use( "autocomplete"、 "autocomplete-filters"、 "autocomplete-highlighters"、function(Y){var inputNode = Y.one('#name' )、tags = ['css'、'css3'、'douglas crockford'、'ecmascript'、'html'、'html5'、'java'、'javascript'、'json'、'node.js'、'pie '、' yui']、lastValue ='';
inputNode.plug(Y.Plugin.AutoComplete, {
activateFirstItem: true,
minQueryLength: 0,
queryDelay: 0,
source: tags,
resultHighlighter: 'startsWith',
resultFilters: ['startsWith']
});
// When the input node receives focus, send an empty query to display the full
// list of tag suggestions.
inputNode.on('focus', function () {
inputNode.ac.sendRequest('');
});
// When there are new AutoComplete results, check the length of the result
// list. A length of zero means the value isn't in the list, so reset it to
// the last known good value.
inputNode.ac.on('results', function (e) {
if (e.results.length) {
lastValue = inputNode.ac.get('value');
} else {
inputNode.set('value', lastValue);
}
});
// Update the last known good value after a selection is made.
inputNode.ac.after('select', function (e) {
lastValue = e.result.text;
});
});
});