design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

Prompt component should close on close on click outside and escape

Open ivanbogdanov opened this issue 11 years ago • 2 comments

ivanbogdanov avatar Nov 19 '15 02:11 ivanbogdanov

@madpotato Just checked with Adam Doti, and he said that the Prompt should only close on clicking outside/esc if it's "passive". I'll add in a prop for that component.

donnieberg avatar Dec 15 '15 00:12 donnieberg

@madpotato Added a prop, isPassive. It's true by default so users can click outside/esc to close modal. If false, users are forced to click/enter Button inside Modal to close.

donnieberg avatar Dec 15 '15 01:12 donnieberg