~たまま/~ままに
With … still …, leaving … as it is; ~ままに: just as (someone says), following
N3
V-ta / V-nai / N + の + まま(で) / V-dict, V-passive + ままに
~たまま says the state resulting from an action is kept while something else happens: {靴|くつ}を{履|は}いたまま{部屋|へや}に{入|はい}る. Both clauses usually share the subject, and the second is often something unusual. ~ままに (N3) means "just as": {言|い}われるままに (doing exactly as told, often without thinking). Unlike ~っぱなし (neglect, criticism), たまま is more neutral. Learners sometimes say "{履|は}いてまま"; it must be the た form + まま.
Examples
日本の家では、靴を履いたまま部屋に入ってはいけない。
In Japanese homes you must not go into a room with your shoes on.
昨日は疲れて、テレビをつけたまま寝てしまった。
I was so tired yesterday that I fell asleep with the TV on.
店長に言われるままに書類にサインしたが、内容はよく分からなかった。
I signed the papers just as the manager told me, but I didn't really understand them.
Exercises
1.手袋を まま、スマホを触ってはいけません。
2.窓を開けた 出かけたら、雨が入ってきた。