# Changelog

All notable changes to the Modal Manager project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.3] - 2024-03-15

### Fixed
- Fixed issue with empty data-modal attributes breaking normal link behavior

## [1.0.2] - 2024-03-15

### Added
- Full HubSpot form compatibility
- Enhanced documentation with more installation options
- Added browser compatibility information

### Changed
- Improved close button behavior for better form interaction
- Enhanced background click detection algorithm
- Updated README with more comprehensive usage examples

### Fixed
- Fixed compatibility issues with form validation
- Improved event handling to prevent unwanted form submissions

## [1.0.1] - 2024-03-14

### Changed
- Improved event handling for modal close buttons using mousedown events
- Enhanced background click detection for better compatibility with forms
- Added HubSpot form compatibility
- Updated documentation for clarity

### Fixed
- Fixed issue with form validation conflicts when closing modals
- Improved event propagation handling

## [1.0.0] - 2024-03-14

### Added
- Initial release of Modal Manager
- Core modal management functionality with proper stacking
- Focus trapping for accessibility
- Keyboard navigation support (Tab and Escape)
- Event delegation for all click handlers
- Custom events for modal open/close
- Methods for programmatically controlling modals
- Comprehensive documentation and examples 