fix(SelectMenu): can't use event in template trailing and leading

This commit is contained in:
rdjanuar
2024-11-07 15:46:36 +07:00
parent 24e61ccc8b
commit c0e4a4fe5e
2 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ export default {
},
leading: {
wrapper: 'absolute inset-y-0 start-0 flex items-center',
pointer: 'pointer-events-none',
pointer: 'pointer-events-auto',
padding: {
'2xs': 'px-2',
'xs': 'px-2.5',
@@ -89,7 +89,7 @@ export default {
},
trailing: {
wrapper: 'absolute inset-y-0 end-0 flex items-center',
pointer: 'pointer-events-none',
pointer: 'pointer-events-auto',
padding: {
'2xs': 'px-2',
'xs': 'px-2.5',

View File

@@ -3,7 +3,7 @@ import inputMenu from './inputMenu'
export default {
...inputMenu,
select: 'inline-flex items-center text-left cursor-default',
select: 'inline-flex items-center text-left cursor-default [&:disabled_*]:pointer-events-none',
input: 'block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none',
required: 'absolute inset-0 w-px opacity-0 cursor-default',
label: 'block truncate',