Skip to content

Commit

Permalink
feat: fix calendar confirmBtn when value is null (#1621)
Browse files Browse the repository at this point in the history
* feat: fix calendar confirmBtn when value is null

* chore: simplify

---------

Co-authored-by: anlyyao <[email protected]>
  • Loading branch information
GaoJiuJiu and anlyyao authored Oct 16, 2024
1 parent 88e15da commit 06ee986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calendar/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default defineComponent({

return () => {
const title = renderTNodeJSX('title');
const confirmBtn = renderTNodeJSX('confirmBtn');
const confirmBtn = renderTNodeJSX('confirmBtn') === undefined ? null : renderTNodeJSX('confirmBtn');
return (
<div>
{!props.usePopup ? (
Expand Down

0 comments on commit 06ee986

Please sign in to comment.