Skip to content

Commit

Permalink
Cleanup code a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Feb 2, 2024
1 parent 1d1046e commit e6136aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export let Description = defineComponent({

return () => {
let { name = 'Description', slot = ref({}), props = {} } = context
let { id: _id, ...theirProps } = myProps
let { ...theirProps } = myProps

let ourProps = {
...Object.entries(props).reduce(
Expand Down
2 changes: 1 addition & 1 deletion packages/@headlessui-vue/src/components/label/label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export let Label = defineComponent({

return () => {
let { name = 'Label', slot = {}, props = {} } = context
let { id: _id, passive, ...theirProps } = myProps
let { passive, ...theirProps } = myProps
let ourProps = {
...Object.entries(props).reduce(
(acc, [key, value]) => Object.assign(acc, { [key]: unref(value) }),
Expand Down

0 comments on commit e6136aa

Please sign in to comment.