Pass data in an object to preserve modal scope input.