Add example with clearOnEscape