Prerequisites
Ionic Framework Version
v7.x
Current Behavior
TypeError: instance[watchMethodName] is not a function
at Datetime.set [as min]
at attributeChangedCallback
Expected Behavior
Ionic components should not throw runtime errors when used inside IonModal, even when controlled via React props.
At minimum:
• setting props like min, value, or isOpen should be safe
• or Ionic should document that this pattern is unsupported
Steps to Reproduce
const Example = () => {
const [open, setOpen] = useState(true);
return (
<IonModal isOpen={open}>
<IonDatetime
presentation="date"
min="2026-01-19"
value="2026-01-20"
/>
</IonModal>
);
};
Code Reproduction URL
null
Ionic Info
This affects multiple components that using Overlay
Additional Information
No response
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
Expected Behavior
Ionic components should not throw runtime errors when used inside IonModal, even when controlled via React props.
At minimum:
• setting props like min, value, or isOpen should be safe
• or Ionic should document that this pattern is unsupported
Steps to Reproduce
Code Reproduction URL
null
Ionic Info
This affects multiple components that using Overlay
Additional Information
No response