New-UDTextbox with -mask parameter throws error in dashboard/form

Product: PowerShell Universal
Version: 3.0.0-beta3

Hi,

I have a dashboard containing a form with UDTextbox field that requiers the user to enter a MAC address that is formatted with a mask like this:

New-UDTextbox -Id 'tbMacAddress' -Label 'MAC Address' -Mask @('/[0-9a-fA-F]/', '/[0-9a-fA-F]/', ":", '/[0-9a-fA-F]/', '/[0-9a-fA-F]/', ":", '/[0-9a-fA-F]/', '/[0-9a-fA-F]/', ":", '/[0-9a-fA-F]/', '/[0-9a-fA-F]/', ":", '/[0-9a-fA-F]/', '/[0-9a-fA-F]/', ":", '/[0-9a-fA-F]/', '/[0-9a-fA-F]/')

If i view the page, the tbMacAddress fields throws an error:

Error rendering component (mu-textbox)

This error is not expected. Please report it to Ironman Software.

And the contents is:

Error rendering component (mu-textbox)
TypeError: t is not a function

    at t (http://vxpsuniversal01:5000/new_printer/6729.6be457ab3d6eb0421a27.bundle.js:1:9665)
    at http://vxpsuniversal01:5000/new_printer/6729.6be457ab3d6eb0421a27.bundle.js:1:6976
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at http://vxpsuniversal01:5000/new_printer/7805.523d42d9086333868780.bundle.js:1:13616
    at http://vxpsuniversal01:5000/new_printer/7805.523d42d9086333868780.bundle.js:1:22123
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at http://vxpsuniversal01:5000/new_printer/7805.523d42d9086333868780.bundle.js:1:6676
    at b (http://vxpsuniversal01:5000/new_printer/6729.6be457ab3d6eb0421a27.bundle.js:1:6943)
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:1796130
    at o (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2750081)
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:102:31009
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:102:31009
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:1796130
    at o (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2750081)
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:75:13962
    at n (http://vxpsuniversal01:5000/new_printer/1077.3a2b84c83de44557168f.bundle.js:1:5846)
    at http://vxpsuniversal01:5000/new_printer/1077.3a2b84c83de44557168f.bundle.js:1:5148
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at t (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2678747)
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:102:2873
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:102:64533
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:75:14747
    at n (http://vxpsuniversal01:5000/new_printer/1077.3a2b84c83de44557168f.bundle.js:1:12274)
    at http://vxpsuniversal01:5000/new_printer/1077.3a2b84c83de44557168f.bundle.js:1:5148
    at o (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2750081)
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:102:31009
    at i (http://vxpsuniversal01:5000/new_printer/5474.0a3f08e9ae5c242abc55.bundle.js:1:236)
    at o (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2750081)
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:2:1220
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:102:31009
    at i (http://vxpsuniversal01:5000/new_printer/5474.0a3f08e9ae5c242abc55.bundle.js:1:236)
    at o (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2750081)
    at main
    at div
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:1796130
    at t (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2647370)
    at t (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2649353)
    at Suspense
    at wt (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:128792)
    at C (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:83073)
    at l (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:82791)
    at d (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:83193)
    at ie (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:56510)
    at o (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2706723)
    at http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2707599
    at Dashboard (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:202297)
    at t (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2647370)
    at t (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2649353)
    at div
    at t (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2644099)
    at t (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2639359)
    at o (http://vxpsuniversal01:5000/new_printer/index.28dfd4833f8e216cc8c3.bundle.js:147:2753727)

If I remove the -mask parameter the field is shown correctly. I have tested this with another field and mask and the same error occured.

This is a clean installed V3.0.0-beta3 version.

Kind regards,

Tim

1 Like

@DataTraveler
I am seeing the same thing in 3.0.5.