비로그인시 검색기능 불가능 현상관련 질문드립니다.
본문
최근 검색기능을 구현을 했습니다.
코드는
<div class="search-wrapper"> <div class="input-holder"> <form name="frmsearch1" action="<?php echo G5_SHOP_URL; ?>/search.php" onsubmit="return search_submit(this);"> <label for="sch_str" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label> <input type="text" name="q" value="<?php echo stripslashes(get_text(get_search_string($q))); ?>" class="search-input" placeholder="Type to search" /> <button class="search-icon" onclick="searchToggle(this, event);"><span></span></button> </div> <span class="close" onclick="searchToggle(this, event);"></span> <script> function searchToggle(obj, evt){ var container = $(obj).closest('.search-wrapper'); if(!container.hasClass('active')){ container.addClass('active'); evt.preventDefault(); } else if(container.hasClass('active') && $(obj).closest('.input-holder').length == 0){ container.removeClass('active'); // clear input container.find('.search-input').val(''); } } </script> </div>
해당 코드인데요.
관리자나 일반회원으로 로그인하면 검색기능이 정상적으로 작동을 하지만
로그인을 하지 않은 상태에서는 검색기능이 작동하지 않습니다.
비로그인으로 검색을시도 했을때 콘솔 내용입니다,
도메인/:1 An invalid form control with name='mb_id' is not focusable.
도메인/:1 An invalid form control with name='mb_password' is not focusable.
답변을 작성하시기 전에 로그인 해주세요.