@@ -56,28 +56,6 @@ defmodule Scenic.Component.Input.TextField do
56
56
57
57
def verify ( _ ) , do: :invalid_data
58
58
59
- # #--------------------------------------------------------
60
- # defp verify_option( {:w, w} ) when is_number(w) and w > 0, do: true
61
- # defp verify_option( {:width, w} )when is_number(w) and w > 0, do: true
62
- # defp verify_option( {:hint, hint} ) when is_bitstring(hint), do: true
63
- # defp verify_option( {:theme, :light} ), do: true
64
- # defp verify_option( {:theme, :dark} ), do: true
65
- # defp verify_option( {:theme,
66
- # {text_color, hint_color, background_color, border_color, focused_color}} ) do
67
- # Color.verify( text_color ) &&
68
- # Color.verify( hint_color ) &&
69
- # Color.verify( background_color ) &&
70
- # Color.verify( border_color ) &&
71
- # Color.verify( focused_color )
72
- # end
73
- # defp verify_option( {:type, :text} ), do: true
74
- # defp verify_option( {:type, :password} ), do: true
75
- # defp verify_option( {:filter, :number} ), do: true
76
- # defp verify_option( {:filter, :integer} ), do: true
77
- # defp verify_option( {:filter, filter} ) when is_bitstring(filter), do: true
78
- # defp verify_option( {:filter, filter} ) when is_function(filter,1), do: true
79
- # defp verify_option( _ ), do: false
80
-
81
59
# --------------------------------------------------------
82
60
def init ( value , opts ) do
83
61
id = opts [ :id ]
@@ -603,7 +581,7 @@ defmodule Scenic.Component.Input.TextField do
603
581
send_event ( { :value_changed , id , value } )
604
582
605
583
# advance the index
606
- index = index + 1
584
+ index = index + String . length ( char )
607
585
608
586
# update the graph
609
587
graph =
0 commit comments