mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 10:20:42 +01:00
fix(SelectMenu): can't use event in template trailing and leading
This commit is contained in:
@@ -77,7 +77,7 @@ export default {
|
|||||||
},
|
},
|
||||||
leading: {
|
leading: {
|
||||||
wrapper: 'absolute inset-y-0 start-0 flex items-center',
|
wrapper: 'absolute inset-y-0 start-0 flex items-center',
|
||||||
pointer: 'pointer-events-none',
|
pointer: 'pointer-events-auto',
|
||||||
padding: {
|
padding: {
|
||||||
'2xs': 'px-2',
|
'2xs': 'px-2',
|
||||||
'xs': 'px-2.5',
|
'xs': 'px-2.5',
|
||||||
@@ -89,7 +89,7 @@ export default {
|
|||||||
},
|
},
|
||||||
trailing: {
|
trailing: {
|
||||||
wrapper: 'absolute inset-y-0 end-0 flex items-center',
|
wrapper: 'absolute inset-y-0 end-0 flex items-center',
|
||||||
pointer: 'pointer-events-none',
|
pointer: 'pointer-events-auto',
|
||||||
padding: {
|
padding: {
|
||||||
'2xs': 'px-2',
|
'2xs': 'px-2',
|
||||||
'xs': 'px-2.5',
|
'xs': 'px-2.5',
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import inputMenu from './inputMenu'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
...inputMenu,
|
...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',
|
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',
|
required: 'absolute inset-0 w-px opacity-0 cursor-default',
|
||||||
label: 'block truncate',
|
label: 'block truncate',
|
||||||
|
|||||||
Reference in New Issue
Block a user