selective mutismed

adj.

Loosened by drink into speaking freely at the bar, but becoming silent at every mention of departure.

Source: Wiktionary