File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1717 }
1818
1919 const onHandleSearch = (event ) => {
20+ if (! value) {
21+ return ;
22+ }
2023 if (event .key === ' Enter' || typeof event .key === ' undefined' ) {
2124 handleSearch ();
2225 }
5760 <button
5861 type =" button"
5962 on:click ={onHandleSearch }
60- class =" rotate-rtl relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:text-gray-300 dark:hover:text-gray-900"
63+ disabled ={! value }
64+ class =" rotate-rtl relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed dark:text-gray-300 dark:hover:text-gray-900"
6165 >
6266 <svg
6367 xmlns =" http://www.w3.org/2000/svg"
You can’t perform that action at this time.
0 commit comments