If you get trapped by Genjutsu while performing seals, it's like getting hit by a weapon, Whatever you were doing gets interupted.
Although, many genjutsu can be performed quickly, allowing people to continue their technique but it won't have any effect considering they're in an illusion. In this case, watch for the " trap // Entry of the Illusion " Line.