From 15b964bea8371005354695168b5121145d1a4731 Mon Sep 17 00:00:00 2001 From: Mark Rosenberg <38965626+markdoeswork@users.noreply.github.com> Date: Fri, 7 Feb 2025 10:27:37 -0500 Subject: [PATCH] [PLAY-1866] Mask Use PBenahcnedElement (#4201) Runway [PLAY-1866](https://runway.powerhrg.com/backlog_items/PLAY-1866) Alpha https://github.com/powerhome/nitro-web/pull/45790 The input mask isn't working in Nitro because Nitro wasn't expecting the JS module to be the new pattern Mark made in I changed it to use our PbEnhancedElement kit --- .../docs/_text_input_mask.html.erb | 2 +- .../pb_kits/playbook/pb_text_input/index.js | 135 +++++++----------- 2 files changed, 53 insertions(+), 84 deletions(-) diff --git a/playbook/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb b/playbook/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb index 3fc297b280..8b2f5e952e 100644 --- a/playbook/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb +++ b/playbook/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb @@ -38,7 +38,7 @@ margin_bottom: "md", name: "currency_name", id: "example-currency", - placeholder: "$0.00", + value: "$99.99", }) %>